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 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 TypeMethodDescriptionint
compare(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.char
Defines the default format symbol which is used in format patterns to refer to this element.getType()
Yields the reified value type.boolean
Queries if this element represents a calendar date element.boolean
Queries if setting of element values is performed in a lenient way.boolean
Queries if this element represents a wall time element.static FlagElement
Returns 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, valueOf
Methods inherited from interface net.time4j.engine.ChronoElement
getDisplayName, name
Methods 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:ChronoElement
Yields the reified value type.
- Specified by:
getType
in interfaceChronoElement<Boolean>
- Returns:
- type of associated values
-
getSymbol
public char getSymbol()Description copied from interface:ChronoElement
Defines 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 "
-