Interface TableConditionModel<C>

Type Parameters:
C - the condition identifier type
All Known Subinterfaces:
EntityConditionModel

public interface TableConditionModel<C>
See Also:
  • Method Details

    • identifiers

      Collection<C> identifiers()
      Returns:
      the available condition model identifiers
    • get

      <T> ConditionModel<C,T> get(C identifier)
      The condition model associated with identifier
      Type Parameters:
      T - the condition value type
      Parameters:
      identifier - the identifier for which to retrieve the ConditionModel
      Returns:
      the ConditionModel for the identifier
      Throws:
      IllegalArgumentException - in case no condition model exists for the given identifier
    • optional

      <T> Optional<ConditionModel<C,T>> optional(C identifier)
      The condition model associated with identifier
      Type Parameters:
      T - the condition value type
      Parameters:
      identifier - the identifier for which to retrieve the ConditionModel
      Returns:
      the ConditionModel for the identifier or an empty Optional in case one is not available
    • clear

      void clear()
      Clears the search state of all the condition models, disables them and resets the operator to Operator.EQUAL
    • enabled

      StateObserver enabled()
      Returns:
      a StateObserver enabled when any of the underlying condition models are enabled
    • changed

      Observer<?> changed()
      Returns:
      an observer notified each time the condition changes
    • tableConditionModel

      static <C> TableConditionModel<C> tableConditionModel(Collection<ConditionModel<C,?>> conditionModels)
      Instantiates a new TableConditionModel
      Type Parameters:
      C - the condition identifier type
      Parameters:
      conditionModels - the condition models
      Returns:
      a new TableConditionModel