final class BasicWeekOfWeekyearDateTimeField extends PreciseDurationDateTimeField
Modifier and Type | Field and Description |
---|---|
private BasicChronology |
iChronology |
private static long |
serialVersionUID |
Constructor and Description |
---|
BasicWeekOfWeekyearDateTimeField(BasicChronology chronology,
DurationField weeks)
Restricted constructor
|
Modifier and Type | Method and Description |
---|---|
int |
get(long instant)
Get the week of a week based year component of the specified time instant.
|
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.
|
private java.lang.Object |
readResolve()
Serialization singleton
|
long |
remainder(long instant)
This method assumes that this field is properly rounded on
1970-01-01T00:00:00.
|
long |
roundCeiling(long instant)
This method assumes that this field is properly rounded on
1970-01-01T00:00:00.
|
long |
roundFloor(long instant)
This method assumes that this field is properly rounded on
1970-01-01T00:00:00.
|
getDurationField, getUnitMillis, isLenient, 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, isLeap, isSupported, roundHalfCeiling, roundHalfEven, roundHalfFloor, set, set, set, set, toString
setExtended
private static final long serialVersionUID
private final BasicChronology iChronology
BasicWeekOfWeekyearDateTimeField(BasicChronology chronology, DurationField weeks)
public int get(long instant)
get
in class BaseDateTimeField
instant
- the time instant in millis to query.DateTimeField.get(long)
public DurationField getRangeDurationField()
BaseDateTimeField
getRangeDurationField
in class BaseDateTimeField
public long roundFloor(long instant)
PreciseDurationDateTimeField
return super.roundFloor(instant + ALIGNMENT_MILLIS) - ALIGNMENT_MILLIS;
roundFloor
in class PreciseDurationDateTimeField
instant
- the milliseconds from 1970-01-01T00:00:00Z to roundpublic long roundCeiling(long instant)
PreciseDurationDateTimeField
return super.roundCeiling(instant + ALIGNMENT_MILLIS) - ALIGNMENT_MILLIS;
roundCeiling
in class PreciseDurationDateTimeField
instant
- the milliseconds from 1970-01-01T00:00:00Z to roundpublic long remainder(long instant)
PreciseDurationDateTimeField
return super.remainder(instant + ALIGNMENT_MILLIS);
remainder
in class PreciseDurationDateTimeField
instant
- the milliseconds from 1970-01-01T00:00:00Z to get the
remainderpublic 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
private java.lang.Object readResolve()