Enum Class InfinityStyle

java.lang.Object
java.lang.Enum<InfinityStyle>
net.time4j.range.InfinityStyle
All Implemented Interfaces:
Serializable, Comparable<InfinityStyle>, java.lang.constant.Constable

public enum InfinityStyle extends Enum<InfinityStyle>

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 Constants
    Enum Constant
    Description
    Printing infinite intervals is not supported by this style and will throw an IllegalStateException.
    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 Type
    Method
    Description
    valueOf​(String name)
    Returns the enum constant of this class with the specified name.
    static InfinityStyle[]
    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 class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • ABORT

      public static final InfinityStyle ABORT

      Printing infinite intervals is not supported by this style and will throw an IllegalStateException.

    • SYMBOL

      public static final InfinityStyle SYMBOL

      The mathematical symbols "-∞" (infinite past) or "+∞" (infinite future) will be used.

    • HYPHEN

      public static final InfinityStyle HYPHEN

      The hyphen "-" will be used for infinite past as well as for infinite future.

    • MIN_MAX

      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).

  • Method Details

    • values

      public static InfinityStyle[] 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

      public static InfinityStyle valueOf(String name)
      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 name
      NullPointerException - if the argument is null