public enum FlagElement extends Enum<FlagElement> implements ChronoElement<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.
|
Boolean |
getDefaultMaximum()
Returns the default maximum of this element which is not dependent
on the chronological context.
|
Boolean |
getDefaultMinimum()
Returns the default minimum of this element which is not dependent
on the chronological context.
|
char |
getSymbol()
Defines the default format symbol which is used in format patterns
to refer to this element.
|
Class<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(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, valueOfgetDisplayName, namecomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic 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(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Class<Boolean> getType()
ChronoElementYields the reified value type.
getType in interface ChronoElement<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 "