public enum FlagElement extends java.lang.Enum<FlagElement> implements ChronoElement<java.lang.Boolean>
A specialized element for indicating special state during parsing.
| Enum Constant and Description |
|---|
DAYLIGHT_SAVING
Identifies a summer or winter time information in any parsed chronological entity.
|
LEAP_SECOND
Identifies the existence of a leap second in any parsed chronological entity.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(ChronoDisplay o1,
ChronoDisplay o2)
Applies an element-orientated sorting of any chronological
entities.
|
java.lang.Boolean |
getDefaultMaximum()
Returns the default maximum of this element which is not dependent
on the chronological context.
|
java.lang.Boolean |
getDefaultMinimum()
Returns the default minimum of this element which is not dependent
on the chronological context.
|
java.lang.String |
getDisplayName(java.util.Locale language)
Obtains a localized name for display purposes if possible.
|
char |
getSymbol()
Defines the default format symbol which is used in format patterns
to refer to this element.
|
java.lang.Class<java.lang.Boolean> |
getType()
Yields the reified value type.
|
boolean |
isDateElement()
Queries if this element represents a calendar date element.
|
boolean |
isLenient()
Queries if setting of element values is performed in a lenient
way.
|
boolean |
isTimeElement()
Queries if this element represents a wall time element.
|
static FlagElement |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FlagElement[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOfnamepublic static final FlagElement LEAP_SECOND
Identifies the existence of a leap second in any parsed chronological entity.
public static final FlagElement DAYLIGHT_SAVING
Identifies a summer or winter time information in any parsed chronological entity.
public static FlagElement[] values()
for (FlagElement c : FlagElement.values()) System.out.println(c);
public static FlagElement valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.Class<java.lang.Boolean> getType()
ChronoElementYields the reified value type.
getType in interface ChronoElement<java.lang.Boolean>public char getSymbol()
ChronoElementDefines the default format symbol which is used in format patterns to refer to this element.
In most cases the symbol should closely match the symbol-mapping as defined by the CLDR-standard of unicode-organization. Is the element not designed for formatting using patterns then this method just yields the ASCII-char "