Class ChangedClauseImpl

java.lang.Object
com.atlassian.query.clause.ChangedClauseImpl
All Implemented Interfaces:
ChangedClause, Clause, Serializable

public class ChangedClauseImpl extends Object implements ChangedClause
Implementation of ChangedClasue
Since:
v5.0
See Also:
  • Constructor Details

  • Method Details

    • getField

      public String getField()
      Specified by:
      getField in interface ChangedClause
    • getPredicate

      public HistoryPredicate getPredicate()
      Specified by:
      getPredicate in interface ChangedClause
    • getOperator

      public Operator getOperator()
      Specified by:
      getOperator in interface ChangedClause
    • getName

      public String getName()
      Description copied from interface: Clause
      The name of the individual clause, this should be unique amongst the implementations otherwise the clauses will be treated as the "same" type of clause.
      Specified by:
      getName in interface Clause
      Returns:
      the name of the individual clause.
    • getClauses

      public List<Clause> getClauses()
      Specified by:
      getClauses in interface Clause
      Returns:
      child clauses if the clause has any, empty list if it has none.
    • accept

      public <R> R accept(ClauseVisitor<R> visitor)
      Description copied from interface: Clause
      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 Clause
      Parameters:
      visitor - the visitor to accept.
      Returns:
      the result of the visit operation who's type is specified by the incoming visitor.
    • toString

      public String toString()
      Description copied from interface: Clause
      Return a string representation of the clause. This string representation should not be used to represent the clause to the user as it may not be valid. For example, this method makes no attempt to escape invalid names and strings.
      Specified by:
      toString in interface Clause
      Overrides:
      toString in class Object
      Returns:
      the string representation of the clause.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object