Interface TableConditionModel<C>

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

public interface TableConditionModel<C>
Manages a set of ConditionModels for table columns.
See Also:
  • Method Details

    • get

      Map<C,ConditionModel<?>> get()
      Returns:
      an unmodifiable view of the available condition models
    • get

      <T> ConditionModel<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 associated with the given identifier
      Throws:
      IllegalArgumentException - in case no condition model exists for the given identifier
    • optional

      <T> Optional<ConditionModel<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(Map<C,ConditionModel<?>> conditions)
      Instantiates a new TableConditionModel
      Type Parameters:
      C - the condition identifier type
      Parameters:
      conditions - the condition models mapped to their respective column identifiers
      Returns:
      a new TableConditionModel