public final class UnsupportedDateTimeField extends DateTimeField implements Serializable
UnsupportedDateTimeField is thread-safe and immutable.
| 限定符和类型 | 方法和说明 |
|---|---|
long |
add(long instant,
int value)
Delegates to the duration field.
|
long |
add(long instant,
long value)
Delegates to the duration field.
|
int[] |
add(ReadablePartial instant,
int fieldIndex,
int[] values,
int valueToAdd)
Always throws UnsupportedOperationException
|
long |
addWrapField(long instant,
int value)
Always throws UnsupportedOperationException
|
int[] |
addWrapField(ReadablePartial instant,
int fieldIndex,
int[] values,
int valueToAdd)
Always throws UnsupportedOperationException
|
int[] |
addWrapPartial(ReadablePartial instant,
int fieldIndex,
int[] values,
int valueToAdd)
Always throws UnsupportedOperationException
|
int |
get(long instant)
Always throws UnsupportedOperationException
|
String |
getAsShortText(int fieldValue,
Locale locale)
Always throws UnsupportedOperationException
|
String |
getAsShortText(long instant)
Always throws UnsupportedOperationException
|
String |
getAsShortText(long instant,
Locale locale)
Always throws UnsupportedOperationException
|
String |
getAsShortText(ReadablePartial partial,
int fieldValue,
Locale locale)
Always throws UnsupportedOperationException
|
String |
getAsShortText(ReadablePartial partial,
Locale locale)
Always throws UnsupportedOperationException
|
String |
getAsText(int fieldValue,
Locale locale)
Always throws UnsupportedOperationException
|
String |
getAsText(long instant)
Always throws UnsupportedOperationException
|
String |
getAsText(long instant,
Locale locale)
Always throws UnsupportedOperationException
|
String |
getAsText(ReadablePartial partial,
int fieldValue,
Locale locale)
Always throws UnsupportedOperationException
|
String |
getAsText(ReadablePartial partial,
Locale locale)
Always throws UnsupportedOperationException
|
int |
getDifference(long minuendInstant,
long subtrahendInstant)
Delegates to the duration field.
|
long |
getDifferenceAsLong(long minuendInstant,
long subtrahendInstant)
Delegates to the duration field.
|
DurationField |
getDurationField()
Even though this DateTimeField is unsupported, the duration field might
be supported.
|
static UnsupportedDateTimeField |
getInstance(DateTimeFieldType type,
DurationField durationField)
Gets an instance of UnsupportedDateTimeField for a specific named field.
|
int |
getLeapAmount(long instant)
Always throws UnsupportedOperationException
|
DurationField |
getLeapDurationField()
Always returns null.
|
int |
getMaximumShortTextLength(Locale locale)
Always throws UnsupportedOperationException
|
int |
getMaximumTextLength(Locale locale)
Always throws UnsupportedOperationException
|
int |
getMaximumValue()
Always throws UnsupportedOperationException
|
int |
getMaximumValue(long instant)
Always throws UnsupportedOperationException
|
int |
getMaximumValue(ReadablePartial instant)
Always throws UnsupportedOperationException
|
int |
getMaximumValue(ReadablePartial instant,
int[] values)
Always throws UnsupportedOperationException
|
int |
getMinimumValue()
Always throws UnsupportedOperationException
|
int |
getMinimumValue(long instant)
Always throws UnsupportedOperationException
|
int |
getMinimumValue(ReadablePartial instant)
Always throws UnsupportedOperationException
|
int |
getMinimumValue(ReadablePartial instant,
int[] values)
Always throws UnsupportedOperationException
|
String |
getName()
Get the name of the field.
|
DurationField |
getRangeDurationField()
Always returns null.
|
DateTimeFieldType |
getType()
Get the type of the field.
|
boolean |
isLeap(long instant)
Always throws UnsupportedOperationException
|
boolean |
isLenient()
This field is not lenient.
|
boolean |
isSupported()
This field is not supported.
|
long |
remainder(long instant)
Always throws UnsupportedOperationException
|
long |
roundCeiling(long instant)
Always throws UnsupportedOperationException
|
long |
roundFloor(long instant)
Always throws UnsupportedOperationException
|
long |
roundHalfCeiling(long instant)
Always throws UnsupportedOperationException
|
long |
roundHalfEven(long instant)
Always throws UnsupportedOperationException
|
long |
roundHalfFloor(long instant)
Always throws UnsupportedOperationException
|
long |
set(long instant,
int value)
Always throws UnsupportedOperationException
|
long |
set(long instant,
String text)
Always throws UnsupportedOperationException
|
long |
set(long instant,
String text,
Locale locale)
Always throws UnsupportedOperationException
|
int[] |
set(ReadablePartial instant,
int fieldIndex,
int[] values,
int newValue)
Always throws UnsupportedOperationException
|
int[] |
set(ReadablePartial instant,
int fieldIndex,
int[] values,
String text,
Locale locale)
Always throws UnsupportedOperationException
|
String |
toString()
Get a suitable debug string.
|
public static UnsupportedDateTimeField getInstance(DateTimeFieldType type, DurationField durationField)
type - the type to obtainIllegalArgumentException - if durationField is nullpublic DateTimeFieldType getType()
DateTimeFieldgetType 在类中 DateTimeFieldpublic String getName()
DateTimeFieldBy convention, names follow a pattern of "dddOfRrr", where "ddd" represents the (singular) duration unit field name and "Rrr" represents the (singular) duration range field name. If the range field is not applicable, then the name of the field is simply the (singular) duration field name.
getName 在类中 DateTimeFieldpublic boolean isSupported()
isSupported 在类中 DateTimeFieldpublic boolean isLenient()
isLenient 在类中 DateTimeFieldpublic int get(long instant)
get 在类中 DateTimeFieldinstant - the milliseconds from 1970-01-01T00:00:00Z to queryUnsupportedOperationExceptionpublic String getAsText(long instant, Locale locale)
getAsText 在类中 DateTimeFieldinstant - the milliseconds from 1970-01-01T00:00:00Z to querylocale - the locale to use for selecting a text symbol, null for defaultUnsupportedOperationExceptionpublic String getAsText(long instant)
getAsText 在类中 DateTimeFieldinstant - the milliseconds from 1970-01-01T00:00:00Z to queryUnsupportedOperationExceptionpublic String getAsText(ReadablePartial partial, int fieldValue, Locale locale)
getAsText 在类中 DateTimeFieldpartial - the partial instant to queryfieldValue - the field value of this field, provided for performancelocale - the locale to use for selecting a text symbol, null for defaultUnsupportedOperationExceptionpublic String getAsText(ReadablePartial partial, Locale locale)
getAsText 在类中 DateTimeFieldpartial - the partial instant to querylocale - the locale to use for selecting a text symbol, null for defaultUnsupportedOperationExceptionpublic String getAsText(int fieldValue, Locale locale)
getAsText 在类中 DateTimeFieldfieldValue - the numeric value to convert to textlocale - the locale to use for selecting a text symbol, null for defaultUnsupportedOperationExceptionpublic String getAsShortText(long instant, Locale locale)
getAsShortText 在类中 DateTimeFieldinstant - the milliseconds from 1970-01-01T00:00:00Z to querylocale - the locale to use for selecting a text symbol, null for defaultUnsupportedOperationExceptionpublic String getAsShortText(long instant)
getAsShortText 在类中 DateTimeFieldinstant - the milliseconds from 1970-01-01T00:00:00Z to queryUnsupportedOperationExceptionpublic String getAsShortText(ReadablePartial partial, int fieldValue, Locale locale)
getAsShortText 在类中 DateTimeFieldpartial - the partial instant to queryfieldValue - the field value of this field, provided for performancelocale - the locale to use for selecting a text symbol, null for defaultUnsupportedOperationExceptionpublic String getAsShortText(ReadablePartial partial, Locale locale)
getAsShortText 在类中 DateTimeFieldpartial - the partial instant to querylocale - the locale to use for selecting a text symbol, null for defaultUnsupportedOperationExceptionpublic String getAsShortText(int fieldValue, Locale locale)
getAsShortText 在类中 DateTimeFieldfieldValue - the numeric value to convert to textlocale - the locale to use for selecting a text symbol, null for defaultUnsupportedOperationExceptionpublic long add(long instant,
int value)
add 在类中 DateTimeFieldinstant - the milliseconds from 1970-01-01T00:00:00Z to add tovalue - the value to add, in the units of the fieldUnsupportedOperationException - if the duration is unsupportedpublic long add(long instant,
long value)
add 在类中 DateTimeFieldinstant - the milliseconds from 1970-01-01T00:00:00Z to add tovalue - the long value to add, in the units of the fieldUnsupportedOperationException - if the duration is unsupportedDateTimeField.add(long, int)public int[] add(ReadablePartial instant, int fieldIndex, int[] values, int valueToAdd)
add 在类中 DateTimeFieldinstant - the partial instantfieldIndex - the index of this field in the instantvalues - the values of the partial instant which should be updatedvalueToAdd - the value to add, in the units of the fieldUnsupportedOperationExceptionpublic int[] addWrapPartial(ReadablePartial instant, int fieldIndex, int[] values, int valueToAdd)
addWrapPartial 在类中 DateTimeFieldinstant - the partial instantfieldIndex - the index of this field in the partialvalues - the values of the partial instant which should be updatedvalueToAdd - the value to add, in the units of the fieldUnsupportedOperationExceptionpublic long addWrapField(long instant,
int value)
addWrapField 在类中 DateTimeFieldinstant - the milliseconds from 1970-01-01T00:00:00Z to add tovalue - the value to add, in the units of the fieldUnsupportedOperationExceptionpublic int[] addWrapField(ReadablePartial instant, int fieldIndex, int[] values, int valueToAdd)
addWrapField 在类中 DateTimeFieldinstant - the partial instantfieldIndex - the index of this field in the instantvalues - the values of the partial instant which should be updatedvalueToAdd - the value to add, in the units of the fieldUnsupportedOperationExceptionpublic int getDifference(long minuendInstant,
long subtrahendInstant)
getDifference 在类中 DateTimeFieldminuendInstant - the milliseconds from 1970-01-01T00:00:00Z to
subtract fromsubtrahendInstant - the milliseconds from 1970-01-01T00:00:00Z to
subtract off the minuendUnsupportedOperationException - if the duration is unsupportedpublic long getDifferenceAsLong(long minuendInstant,
long subtrahendInstant)
getDifferenceAsLong 在类中 DateTimeFieldminuendInstant - the milliseconds from 1970-01-01T00:00:00Z to
subtract fromsubtrahendInstant - the milliseconds from 1970-01-01T00:00:00Z to
subtract off the minuendUnsupportedOperationException - if the duration is unsupportedpublic long set(long instant,
int value)
set 在类中 DateTimeFieldinstant - the milliseconds from 1970-01-01T00:00:00Z to set invalue - the value to set, in the units of the fieldUnsupportedOperationExceptionpublic int[] set(ReadablePartial instant, int fieldIndex, int[] values, int newValue)
set 在类中 DateTimeFieldinstant - the partial instantfieldIndex - the index of this field in the instantvalues - the values of the partial instant which should be updatednewValue - the value to set, in the units of the fieldUnsupportedOperationExceptionpublic long set(long instant,
String text,
Locale locale)
set 在类中 DateTimeFieldinstant - the milliseconds from 1970-01-01T00:00:00Z to set intext - the text value to setlocale - the locale to use for selecting a text symbol, null for defaultUnsupportedOperationExceptionpublic long set(long instant,
String text)
set 在类中 DateTimeFieldinstant - the milliseconds from 1970-01-01T00:00:00Z to set intext - the text value to setUnsupportedOperationExceptionpublic int[] set(ReadablePartial instant, int fieldIndex, int[] values, String text, Locale locale)
set 在类中 DateTimeFieldinstant - the partial instantfieldIndex - the index of this field in the instantvalues - the values of the partial instant which should be updatedtext - the text value to setlocale - the locale to use for selecting a text symbol, null for defaultUnsupportedOperationExceptionpublic DurationField getDurationField()
getDurationField 在类中 DateTimeFieldpublic DurationField getRangeDurationField()
getRangeDurationField 在类中 DateTimeFieldpublic boolean isLeap(long instant)
isLeap 在类中 DateTimeFieldinstant - the instant to check for leap statusUnsupportedOperationExceptionpublic int getLeapAmount(long instant)
getLeapAmount 在类中 DateTimeFieldinstant - the instant to check for leap statusUnsupportedOperationExceptionpublic DurationField getLeapDurationField()
getLeapDurationField 在类中 DateTimeFieldpublic int getMinimumValue()
getMinimumValue 在类中 DateTimeFieldUnsupportedOperationExceptionpublic int getMinimumValue(long instant)
getMinimumValue 在类中 DateTimeFieldinstant - the milliseconds from 1970-01-01T00:00:00Z to queryUnsupportedOperationExceptionpublic int getMinimumValue(ReadablePartial instant)
getMinimumValue 在类中 DateTimeFieldinstant - the partial instant to queryUnsupportedOperationExceptionpublic int getMinimumValue(ReadablePartial instant, int[] values)
getMinimumValue 在类中 DateTimeFieldinstant - the partial instant to queryvalues - the values to useUnsupportedOperationExceptionpublic int getMaximumValue()
getMaximumValue 在类中 DateTimeFieldUnsupportedOperationExceptionpublic int getMaximumValue(long instant)
getMaximumValue 在类中 DateTimeFieldinstant - the milliseconds from 1970-01-01T00:00:00Z to queryUnsupportedOperationExceptionpublic int getMaximumValue(ReadablePartial instant)
getMaximumValue 在类中 DateTimeFieldinstant - the partial instant to queryUnsupportedOperationExceptionpublic int getMaximumValue(ReadablePartial instant, int[] values)
getMaximumValue 在类中 DateTimeFieldinstant - the partial instant to queryvalues - the values to useUnsupportedOperationExceptionpublic int getMaximumTextLength(Locale locale)
getMaximumTextLength 在类中 DateTimeFieldlocale - the locale to use for selecting a text symbolUnsupportedOperationExceptionpublic int getMaximumShortTextLength(Locale locale)
getMaximumShortTextLength 在类中 DateTimeFieldlocale - the locale to use for selecting a text symbolUnsupportedOperationExceptionpublic long roundFloor(long instant)
roundFloor 在类中 DateTimeFieldinstant - the milliseconds from 1970-01-01T00:00:00Z to roundUnsupportedOperationExceptionpublic long roundCeiling(long instant)
roundCeiling 在类中 DateTimeFieldinstant - the milliseconds from 1970-01-01T00:00:00Z to roundUnsupportedOperationExceptionpublic long roundHalfFloor(long instant)
roundHalfFloor 在类中 DateTimeFieldinstant - the milliseconds from 1970-01-01T00:00:00Z to roundUnsupportedOperationExceptionpublic long roundHalfCeiling(long instant)
roundHalfCeiling 在类中 DateTimeFieldinstant - the milliseconds from 1970-01-01T00:00:00Z to roundUnsupportedOperationExceptionpublic long roundHalfEven(long instant)
roundHalfEven 在类中 DateTimeFieldinstant - the milliseconds from 1970-01-01T00:00:00Z to roundUnsupportedOperationExceptionpublic long remainder(long instant)
remainder 在类中 DateTimeFieldinstant - the milliseconds from 1970-01-01T00:00:00Z to get the
remainderUnsupportedOperationExceptionpublic String toString()
toString 在类中 DateTimeFieldCopyright © 2019. All rights reserved.