Enum Class BoundType

java.lang.Object
java.lang.Enum<BoundType>
io.permazen.util.BoundType
All Implemented Interfaces:
Serializable, Comparable<BoundType>, Constable

public enum BoundType extends Enum<BoundType>
Upper and lower bound types.
  • Enum Constant Details

    • INCLUSIVE

      public static final BoundType INCLUSIVE
      The bound is inclusive.
    • EXCLUSIVE

      public static final BoundType EXCLUSIVE
      The bound is exclusive.
    • NONE

      public static final BoundType NONE
      There is no bound.
  • Method Details

    • values

      public static BoundType[] 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 BoundType 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
    • of

      public static BoundType of(boolean inclusive)
      ReturnINCLUSIVE or EXCLUSIVE based on the given boolean.
      Parameters:
      inclusive - true for INCLUSIVE, false for EXCLUSIVE
      Returns:
      the corresponding BoundType
    • isInclusive

      public Boolean isInclusive()
      Get a Boolean corresponding to this instance: true for INCLUSIVE, false for EXCLUSIVE, or null for NONE.
      Returns:
      boolean representation of this bound type