Module jakarta.data

Enum Class CompositeRestriction.Type

java.lang.Object
java.lang.Enum<CompositeRestriction.Type>
jakarta.data.restrict.CompositeRestriction.Type
All Implemented Interfaces:
Serializable, Comparable<CompositeRestriction.Type>, Constable
Enclosing interface:
CompositeRestriction<T>

public static enum CompositeRestriction.Type extends Enum<CompositeRestriction.Type>

Indicates how to combine a list of restrictions.

  • Enum Constant Details

    • ALL

      public static final CompositeRestriction.Type ALL

      Indicates that all restrictions within a list must be satisfied in order for the combination of restrictions to be considered satisfied. If the list is empty, the combination is considered satisfied.

      Negation is applied to a composite restriction after evaluating the combination of restrictions.

    • ANY

      public static final CompositeRestriction.Type ANY

      Indicates that at least one of the restrictions within a list must be satisfied in order for the combination of restriction to be considered satisfied. If the list is empty, the combination is is considered unsatisfied.

      Negation is applied to a composite restriction after evaluating the combination of restrictions.

  • Method Details

    • values

      public static CompositeRestriction.Type[] 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 CompositeRestriction.Type 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