final class BasicDayOfMonthDateTimeField extends PreciseDurationDateTimeField
Modifier and Type | Field and Description |
---|---|
private BasicChronology |
iChronology |
private static long |
serialVersionUID |
Constructor and Description |
---|
BasicDayOfMonthDateTimeField(BasicChronology chronology,
DurationField days)
Restricted constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
get(long instant)
Get the value of this field from the milliseconds.
|
int |
getMaximumValue()
Get the maximum allowable value for this field.
|
int |
getMaximumValue(long instant)
Get the maximum value for this field evaluated at the specified time.
|
int |
getMaximumValue(ReadablePartial partial)
Get the maximum value for this field evaluated at the specified instant.
|
int |
getMaximumValue(ReadablePartial partial,
int[] values)
Get the maximum value for this field using the partial instant and
the specified values.
|
protected int |
getMaximumValueForSet(long instant,
int value)
Called by the set method to get the maximum allowed value.
|
int |
getMinimumValue()
Get the minimum value for the field.
|
DurationField |
getRangeDurationField()
Returns the range duration of this field.
|
boolean |
isLeap(long instant)
Returns whether this field is 'leap' for the specified instant.
|
private java.lang.Object |
readResolve()
Serialization singleton
|
getDurationField, getUnitMillis, isLenient, remainder, roundCeiling, roundFloor, set
add, add, add, addWrapField, addWrapField, addWrapPartial, convertText, getAsShortText, getAsShortText, getAsShortText, getAsShortText, getAsShortText, getAsText, getAsText, getAsText, getAsText, getAsText, getDifference, getDifferenceAsLong, getLeapAmount, getLeapDurationField, getMaximumShortTextLength, getMaximumTextLength, getMinimumValue, getMinimumValue, getMinimumValue, getName, getType, isSupported, roundHalfCeiling, roundHalfEven, roundHalfFloor, set, set, set, set, toString
setExtended
private static final long serialVersionUID
private final BasicChronology iChronology
BasicDayOfMonthDateTimeField(BasicChronology chronology, DurationField days)
public int get(long instant)
BaseDateTimeField
get
in class BaseDateTimeField
instant
- the milliseconds from 1970-01-01T00:00:00Z to querypublic DurationField getRangeDurationField()
BaseDateTimeField
getRangeDurationField
in class BaseDateTimeField
public int getMinimumValue()
PreciseDurationDateTimeField
getMinimumValue
in class PreciseDurationDateTimeField
public int getMaximumValue()
BaseDateTimeField
getMaximumValue
in class BaseDateTimeField
public int getMaximumValue(long instant)
BaseDateTimeField
This implementation returns the same as BaseDateTimeField.getMaximumValue()
.
getMaximumValue
in class BaseDateTimeField
instant
- the milliseconds from 1970-01-01T00:00:00Z to querypublic int getMaximumValue(ReadablePartial partial)
BaseDateTimeField
This implementation returns the same as BaseDateTimeField.getMaximumValue()
.
getMaximumValue
in class BaseDateTimeField
partial
- the partial instant to querypublic int getMaximumValue(ReadablePartial partial, int[] values)
BaseDateTimeField
This implementation returns the same as BaseDateTimeField.getMaximumValue(ReadablePartial)
.
getMaximumValue
in class BaseDateTimeField
partial
- the partial instant to queryvalues
- the values to useprotected int getMaximumValueForSet(long instant, int value)
PreciseDurationDateTimeField
getMaximumValueForSet
in class PreciseDurationDateTimeField
public boolean isLeap(long instant)
BaseDateTimeField
For example, a leap year would return true, a non leap year would return false.
This implementation returns false.
isLeap
in class BaseDateTimeField
instant
- the instant to check for leap statusprivate java.lang.Object readResolve()