public enum InfinityStyle extends Enum<InfinityStyle>
Determines how to print infinite interval boundaries.
| Enum Constant and Description |
|---|
ABORT
Printing infinite intervals is not supported by this style
and will throw an
IllegalStateException. |
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.
|
SYMBOL
The mathematical symbols "-∞" (infinite past)
or "+∞" (infinite future) will be used.
|
| Modifier and Type | Method and Description |
|---|---|
static InfinityStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InfinityStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InfinityStyle ABORT
Printing infinite intervals is not supported by this style
and will throw an IllegalStateException.
public static final InfinityStyle SYMBOL
The mathematical symbols "-∞" (infinite past) or "+∞" (infinite future) will be used.
public static final InfinityStyle HYPHEN
The hyphen "-" will be used for infinite past as well as for infinite future.
public static final InfinityStyle 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).
public static InfinityStyle[] values()
for (InfinityStyle c : InfinityStyle.values()) System.out.println(c);
public static InfinityStyle 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 nullCopyright © 2014–2021. All rights reserved.