Class LogicalExpression<T>

java.lang.Object
com.appiancorp.common.query.LogicalExpression<T>
Type Parameters:
T - Type of value
All Implemented Interfaces:
Criteria
Direct Known Subclasses:
GenericLogicalExpression, TypedValueLogicalExpression

@GwtCompatible public abstract class LogicalExpression<T> extends Object implements Criteria
This class represents a logical expression combining multiple filters in a query.
  • Field Details

  • Constructor Details

    • LogicalExpression

      protected LogicalExpression()
      Initializes a newly created LogicalExpression
    • LogicalExpression

      protected LogicalExpression(LogicalOperator operator, Criteria... conditions)
      Constructs a new LogicalExpression
      Parameters:
      operator - a logical operation type define by LogicalOperator enum
      conditions - an array of conditions
    • LogicalExpression

      protected LogicalExpression(LogicalOperator operator, List<? extends Criteria> conditions)
      Constructs a new LogicalExpression
      Parameters:
      operator - a logical operation type define by LogicalOperator enum
      conditions - a list of conditions
  • Method Details

    • getOperator

      public LogicalOperator getOperator()
      Returns the type of logical operation define by the LogicalOperator enum
      Returns:
      the LogicalOperator
    • getConditions

      public abstract List<Criteria> getConditions()
      Returns the list of conditions
      Returns:
      the list of conditions
    • setConditions

      protected abstract void setConditions(List<Criteria> conditions)
      Sets the list of conditions
      Parameters:
      conditions - a list of conditions
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object