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, setadd, 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, toStringsetExtendedprivate static final long serialVersionUID
private final BasicChronology iChronology
BasicWeekOfWeekyearDateTimeField(BasicChronology chronology, DurationField weeks)
public int get(long instant)
get in class BaseDateTimeFieldinstant - the time instant in millis to query.DateTimeField.get(long)public DurationField getRangeDurationField()
BaseDateTimeFieldgetRangeDurationField in class BaseDateTimeFieldpublic long roundFloor(long instant)
PreciseDurationDateTimeFieldreturn super.roundFloor(instant + ALIGNMENT_MILLIS) - ALIGNMENT_MILLIS;
roundFloor in class PreciseDurationDateTimeFieldinstant - the milliseconds from 1970-01-01T00:00:00Z to roundpublic long roundCeiling(long instant)
PreciseDurationDateTimeFieldreturn super.roundCeiling(instant + ALIGNMENT_MILLIS) - ALIGNMENT_MILLIS;
roundCeiling in class PreciseDurationDateTimeFieldinstant - the milliseconds from 1970-01-01T00:00:00Z to roundpublic long remainder(long instant)
PreciseDurationDateTimeFieldreturn super.remainder(instant + ALIGNMENT_MILLIS);
remainder in class PreciseDurationDateTimeFieldinstant - the milliseconds from 1970-01-01T00:00:00Z to get the
remainderpublic int getMinimumValue()
PreciseDurationDateTimeFieldgetMinimumValue in class PreciseDurationDateTimeFieldpublic int getMaximumValue()
BaseDateTimeFieldgetMaximumValue in class BaseDateTimeFieldpublic int getMaximumValue(long instant)
BaseDateTimeField
This implementation returns the same as BaseDateTimeField.getMaximumValue().
getMaximumValue in class BaseDateTimeFieldinstant - 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 BaseDateTimeFieldpartial - the partial instant to querypublic int getMaximumValue(ReadablePartial partial, int[] values)
BaseDateTimeField
This implementation returns the same as BaseDateTimeField.getMaximumValue(ReadablePartial).
getMaximumValue in class BaseDateTimeFieldpartial - the partial instant to queryvalues - the values to useprotected int getMaximumValueForSet(long instant,
int value)
PreciseDurationDateTimeFieldgetMaximumValueForSet in class PreciseDurationDateTimeFieldprivate java.lang.Object readResolve()