Class TerminalHistoryPredicate

java.lang.Object
com.atlassian.query.history.TerminalHistoryPredicate
All Implemented Interfaces:
HistoryPredicate

public class TerminalHistoryPredicate extends Object implements HistoryPredicate
Represents an assertion about a change history, namely that the expression of combining the prefix operator with the operand. The result of evaluating the expression must be true or false. For example the operator may be com.atlassian.query.operator.Operator.BEFORE and the operator (which should be a datetime).
Since:
v4.3
  • Constructor Details

    • TerminalHistoryPredicate

      public TerminalHistoryPredicate(Operator operator, Operand operand)
  • Method Details

    • getOperand

      public Operand getOperand()
    • getOperator

      public Operator getOperator()
    • getDisplayString

      public String getDisplayString()
      Specified by:
      getDisplayString in interface HistoryPredicate
    • accept

      public <R> R accept(PredicateVisitor<R> visitor)
      Description copied from interface: HistoryPredicate
      Allows us to perform operations over the clauses based on the passed in visitor. This method calls the visit method on the visitor with this reference.
      Specified by:
      accept in interface HistoryPredicate
      Parameters:
      visitor - the visitor to accept.
      Returns:
      the result of the visit operation who's type is specified by the incoming visitor.