Package net.time4j.engine
Enum Class FlagElement
- All Implemented Interfaces:
Serializable,Comparable<FlagElement>,java.lang.constant.Constable,Comparator<ChronoDisplay>,ChronoElement<Boolean>
A specialized element for indicating special state during parsing.
- Since:
- 3.32/4.27
- Author:
- Meno Hochschild
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIdentifies a summer or winter time information in any parsed chronological entity.Identifies the existence of a leap second in any parsed chronological entity. -
Method Summary
Modifier and TypeMethodDescriptionintcompare(ChronoDisplay o1, ChronoDisplay o2)Applies an element-orientated sorting of any chronological entities.Returns the default maximum of this element which is not dependent on the chronological context.Returns the default minimum of this element which is not dependent on the chronological context.charDefines the default format symbol which is used in format patterns to refer to this element.getType()Yields the reified value type.booleanQueries if this element represents a calendar date element.booleanQueries if setting of element values is performed in a lenient way.booleanQueries if this element represents a wall time element.static FlagElementReturns the enum constant of this class with the specified name.static FlagElement[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface net.time4j.engine.ChronoElement
getDisplayName, nameMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Enum Constant Details
-
LEAP_SECOND
Identifies the existence of a leap second in any parsed chronological entity.
-
DAYLIGHT_SAVING
Identifies a summer or winter time information in any parsed chronological entity.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getType
Description copied from interface:ChronoElementYields the reified value type.
- Specified by:
getTypein interfaceChronoElement<Boolean>- Returns:
- type of associated values
-
getSymbol
public char getSymbol()Description copied from interface: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 "
-