public final class UnsupportedDateTimeField extends DateTimeField implements java.io.Serializable
UnsupportedDateTimeField is thread-safe and immutable.
Modifier and Type | Method and Description |
---|---|
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
|
java.lang.String |
getAsShortText(int fieldValue,
java.util.Locale locale)
Always throws UnsupportedOperationException
|
java.lang.String |
getAsShortText(long instant)
Always throws UnsupportedOperationException
|
java.lang.String |
getAsShortText(long instant,
java.util.Locale locale)
Always throws UnsupportedOperationException
|
java.lang.String |
getAsShortText(ReadablePartial partial,
int fieldValue,
java.util.Locale locale)
Always throws UnsupportedOperationException
|
java.lang.String |
getAsShortText(ReadablePartial partial,
java.util.Locale locale)
Always throws UnsupportedOperationException
|
java.lang.String |
getAsText(int fieldValue,
java.util.Locale locale)
Always throws UnsupportedOperationException
|
java.lang.String |
getAsText(long instant)
Always throws UnsupportedOperationException
|
java.lang.String |
getAsText(long instant,
java.util.Locale locale)
Always throws UnsupportedOperationException
|
java.lang.String |
getAsText(ReadablePartial partial,
int fieldValue,
java.util.Locale locale)
Always throws UnsupportedOperationException
|
java.lang.String |
getAsText(ReadablePartial partial,
java.util.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(java.util.Locale locale)
Always throws UnsupportedOperationException
|
int |
getMaximumTextLength(java.util.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
|
java.lang.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,
java.lang.String text)
Always throws UnsupportedOperationException
|
long |
set(long instant,
java.lang.String text,
java.util.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,
java.lang.String text,
java.util.Locale locale)
Always throws UnsupportedOperationException
|
java.lang.String |
toString()
Get a suitable debug string.
|
setExtended
public static UnsupportedDateTimeField getInstance(DateTimeFieldType type, DurationField durationField)
type
- the type to obtainjava.lang.IllegalArgumentException
- if durationField is nullpublic DateTimeFieldType getType()
DateTimeField
getType
in class DateTimeField
public java.lang.String getName()
DateTimeField
By 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
in class DateTimeField
public boolean isSupported()
isSupported
in class DateTimeField
public boolean isLenient()
isLenient
in class DateTimeField
public int get(long instant)
get
in class DateTimeField
instant
- the milliseconds from 1970-01-01T00:00:00Z to queryjava.lang.UnsupportedOperationException
public java.lang.String getAsText(long instant, java.util.Locale locale)
getAsText
in class DateTimeField
instant
- the milliseconds from 1970-01-01T00:00:00Z to querylocale
- the locale to use for selecting a text symbol, null for defaultjava.lang.UnsupportedOperationException
public java.lang.String getAsText(long instant)
getAsText
in class DateTimeField
instant
- the milliseconds from 1970-01-01T00:00:00Z to queryjava.lang.UnsupportedOperationException
public java.lang.String getAsText(ReadablePartial partial, int fieldValue, java.util.Locale locale)
getAsText
in class DateTimeField
partial
- 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 defaultjava.lang.UnsupportedOperationException
public java.lang.String getAsText(ReadablePartial partial, java.util.Locale locale)
getAsText
in class DateTimeField
partial
- the partial instant to querylocale
- the locale to use for selecting a text symbol, null for defaultjava.lang.UnsupportedOperationException
public java.lang.String getAsText(int fieldValue, java.util.Locale locale)
getAsText
in class DateTimeField
fieldValue
- the numeric value to convert to textlocale
- the locale to use for selecting a text symbol, null for defaultjava.lang.UnsupportedOperationException
public java.lang.String getAsShortText(long instant, java.util.Locale locale)
getAsShortText
in class DateTimeField
instant
- the milliseconds from 1970-01-01T00:00:00Z to querylocale
- the locale to use for selecting a text symbol, null for defaultjava.lang.UnsupportedOperationException
public java.lang.String getAsShortText(long instant)
getAsShortText
in class DateTimeField
instant
- the milliseconds from 1970-01-01T00:00:00Z to queryjava.lang.UnsupportedOperationException
public java.lang.String getAsShortText(ReadablePartial partial, int fieldValue, java.util.Locale locale)
getAsShortText
in class DateTimeField
partial
- 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 defaultjava.lang.UnsupportedOperationException
public java.lang.String getAsShortText(ReadablePartial partial, java.util.Locale locale)
getAsShortText
in class DateTimeField
partial
- the partial instant to querylocale
- the locale to use for selecting a text symbol, null for defaultjava.lang.UnsupportedOperationException
public java.lang.String getAsShortText(int fieldValue, java.util.Locale locale)
getAsShortText
in class DateTimeField
fieldValue
- the numeric value to convert to textlocale
- the locale to use for selecting a text symbol, null for defaultjava.lang.UnsupportedOperationException
public long add(long instant, int value)
add
in class DateTimeField
instant
- the milliseconds from 1970-01-01T00:00:00Z to add tovalue
- the value to add, in the units of the fieldjava.lang.UnsupportedOperationException
- if the duration is unsupportedpublic long add(long instant, long value)
add
in class DateTimeField
instant
- the milliseconds from 1970-01-01T00:00:00Z to add tovalue
- the long value to add, in the units of the fieldjava.lang.UnsupportedOperationException
- if the duration is unsupportedDateTimeField.add(long,int)
public int[] add(ReadablePartial instant, int fieldIndex, int[] values, int valueToAdd)
add
in class DateTimeField
instant
- 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 fieldjava.lang.UnsupportedOperationException
public int[] addWrapPartial(ReadablePartial instant, int fieldIndex, int[] values, int valueToAdd)
addWrapPartial
in class DateTimeField
instant
- 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 fieldjava.lang.UnsupportedOperationException
public long addWrapField(long instant, int value)
addWrapField
in class DateTimeField
instant
- the milliseconds from 1970-01-01T00:00:00Z to add tovalue
- the value to add, in the units of the fieldjava.lang.UnsupportedOperationException
public int[] addWrapField(ReadablePartial instant, int fieldIndex, int[] values, int valueToAdd)
addWrapField
in class DateTimeField
instant
- 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 fieldjava.lang.UnsupportedOperationException
public int getDifference(long minuendInstant, long subtrahendInstant)
getDifference
in class DateTimeField
minuendInstant
- the milliseconds from 1970-01-01T00:00:00Z to
subtract fromsubtrahendInstant
- the milliseconds from 1970-01-01T00:00:00Z to
subtract off the minuendjava.lang.UnsupportedOperationException
- if the duration is unsupportedpublic long getDifferenceAsLong(long minuendInstant, long subtrahendInstant)
getDifferenceAsLong
in class DateTimeField
minuendInstant
- the milliseconds from 1970-01-01T00:00:00Z to
subtract fromsubtrahendInstant
- the milliseconds from 1970-01-01T00:00:00Z to
subtract off the minuendjava.lang.UnsupportedOperationException
- if the duration is unsupportedpublic long set(long instant, int value)
set
in class DateTimeField
instant
- the milliseconds from 1970-01-01T00:00:00Z to set invalue
- the value to set, in the units of the fieldjava.lang.UnsupportedOperationException
public int[] set(ReadablePartial instant, int fieldIndex, int[] values, int newValue)
set
in class DateTimeField
instant
- 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 fieldjava.lang.UnsupportedOperationException
public long set(long instant, java.lang.String text, java.util.Locale locale)
set
in class DateTimeField
instant
- 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 defaultjava.lang.UnsupportedOperationException
public long set(long instant, java.lang.String text)
set
in class DateTimeField
instant
- the milliseconds from 1970-01-01T00:00:00Z to set intext
- the text value to setjava.lang.UnsupportedOperationException
public int[] set(ReadablePartial instant, int fieldIndex, int[] values, java.lang.String text, java.util.Locale locale)
set
in class DateTimeField
instant
- 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 defaultjava.lang.UnsupportedOperationException
public DurationField getDurationField()
getDurationField
in class DateTimeField
public DurationField getRangeDurationField()
getRangeDurationField
in class DateTimeField
public boolean isLeap(long instant)
isLeap
in class DateTimeField
instant
- the instant to check for leap statusjava.lang.UnsupportedOperationException
public int getLeapAmount(long instant)
getLeapAmount
in class DateTimeField
instant
- the instant to check for leap statusjava.lang.UnsupportedOperationException
public DurationField getLeapDurationField()
getLeapDurationField
in class DateTimeField
public int getMinimumValue()
getMinimumValue
in class DateTimeField
java.lang.UnsupportedOperationException
public int getMinimumValue(long instant)
getMinimumValue
in class DateTimeField
instant
- the milliseconds from 1970-01-01T00:00:00Z to queryjava.lang.UnsupportedOperationException
public int getMinimumValue(ReadablePartial instant)
getMinimumValue
in class DateTimeField
instant
- the partial instant to queryjava.lang.UnsupportedOperationException
public int getMinimumValue(ReadablePartial instant, int[] values)
getMinimumValue
in class DateTimeField
instant
- the partial instant to queryvalues
- the values to usejava.lang.UnsupportedOperationException
public int getMaximumValue()
getMaximumValue
in class DateTimeField
java.lang.UnsupportedOperationException
public int getMaximumValue(long instant)
getMaximumValue
in class DateTimeField
instant
- the milliseconds from 1970-01-01T00:00:00Z to queryjava.lang.UnsupportedOperationException
public int getMaximumValue(ReadablePartial instant)
getMaximumValue
in class DateTimeField
instant
- the partial instant to queryjava.lang.UnsupportedOperationException
public int getMaximumValue(ReadablePartial instant, int[] values)
getMaximumValue
in class DateTimeField
instant
- the partial instant to queryvalues
- the values to usejava.lang.UnsupportedOperationException
public int getMaximumTextLength(java.util.Locale locale)
getMaximumTextLength
in class DateTimeField
locale
- the locale to use for selecting a text symboljava.lang.UnsupportedOperationException
public int getMaximumShortTextLength(java.util.Locale locale)
getMaximumShortTextLength
in class DateTimeField
locale
- the locale to use for selecting a text symboljava.lang.UnsupportedOperationException
public long roundFloor(long instant)
roundFloor
in class DateTimeField
instant
- the milliseconds from 1970-01-01T00:00:00Z to roundjava.lang.UnsupportedOperationException
public long roundCeiling(long instant)
roundCeiling
in class DateTimeField
instant
- the milliseconds from 1970-01-01T00:00:00Z to roundjava.lang.UnsupportedOperationException
public long roundHalfFloor(long instant)
roundHalfFloor
in class DateTimeField
instant
- the milliseconds from 1970-01-01T00:00:00Z to roundjava.lang.UnsupportedOperationException
public long roundHalfCeiling(long instant)
roundHalfCeiling
in class DateTimeField
instant
- the milliseconds from 1970-01-01T00:00:00Z to roundjava.lang.UnsupportedOperationException
public long roundHalfEven(long instant)
roundHalfEven
in class DateTimeField
instant
- the milliseconds from 1970-01-01T00:00:00Z to roundjava.lang.UnsupportedOperationException
public long remainder(long instant)
remainder
in class DateTimeField
instant
- the milliseconds from 1970-01-01T00:00:00Z to get the
remainderjava.lang.UnsupportedOperationException
public java.lang.String toString()
toString
in class DateTimeField
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"