Enum Class Range.RangeSign

java.lang.Object
java.lang.Enum<Range.RangeSign>
dev.civl.sarl.simplify.IF.Range.RangeSign
All Implemented Interfaces:
Serializable, Comparable<Range.RangeSign>, Constable
Enclosing interface:
Range

public static enum Range.RangeSign extends Enum<Range.RangeSign>
A categorization of ranges based on their relationship to 0. Every Range falls into exactly one of these categories.
  • 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
    The range contains at least a negative number and a positive number (0 is optionally contained)
    The range is empty
    The range consists exactly of 0 and nothing else.
    The range contains 0 and a positive number and every element of the range is greater than or equal to 0.
    Every element of the range is greater than 0 and the range is non-empty.
    Every element of the range is less than or equal to 0 and the range contains 0 and a negative number.
    Every element of the range is less than 0 and the range is not empty.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    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

    • LT0

      public static final Range.RangeSign LT0
      Every element of the range is less than 0 and the range is not empty.
    • LE0

      public static final Range.RangeSign LE0
      Every element of the range is less than or equal to 0 and the range contains 0 and a negative number.
    • EQ0

      public static final Range.RangeSign EQ0
      The range consists exactly of 0 and nothing else.
    • GE0

      public static final Range.RangeSign GE0
      The range contains 0 and a positive number and every element of the range is greater than or equal to 0.
    • GT0

      public static final Range.RangeSign GT0
      Every element of the range is greater than 0 and the range is non-empty.
    • EMPTY

      public static final Range.RangeSign EMPTY
      The range is empty
    • ALL

      public static final Range.RangeSign ALL
      The range contains at least a negative number and a positive number (0 is optionally contained)
  • Method Details

    • values

      public static Range.RangeSign[] 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 Range.RangeSign 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