Package net.time4j.range
Enum Class InfinityStyle
- All Implemented Interfaces:
Serializable
,Comparable<InfinityStyle>
,java.lang.constant.Constable
Determines how to print infinite interval boundaries.
- Since:
- 4.18
- 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 ConstantDescriptionPrinting infinite intervals is not supported by this style and will throw anIllegalStateException
.The hyphen "-" will be used for infinite past as well as for infinite future.The minimum and maximum of the underlying time axis (timeline) are used instead of the infinite boundaries.The mathematical symbols "-∞" (infinite past) or "+∞" (infinite future) will be used. -
Method Summary
Modifier and TypeMethodDescriptionstatic InfinityStyle
Returns the enum constant of this class with the specified name.static InfinityStyle[]
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
-
Enum Constant Details
-
ABORT
Printing infinite intervals is not supported by this style and will throw an
IllegalStateException
. -
SYMBOL
The mathematical symbols "-∞" (infinite past) or "+∞" (infinite future) will be used.
-
HYPHEN
The hyphen "-" will be used for infinite past as well as for infinite future.
-
MIN_MAX
The minimum and maximum of the underlying time axis (timeline) are used instead of the infinite boundaries.
This style is syntactically in agreement with strict ISO-8601 standard (which does not know infinite intervals at all).
-
-
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
-