Class ChangeStatusPredicate

  • All Implemented Interfaces:
    com.google.gerrit.index.query.Matchable<ChangeData>

    public final class ChangeStatusPredicate
    extends ChangeIndexPredicate
    Predicate for a Change.Status.

    The actual name of this operator can differ, it usually comes as status: but may also be is: to help do-what-i-meanery for end-users searching for changes. Either operator name has the same meaning.

    Status names are looked up by prefix case-insensitively.

    • Method Detail

      • parse

        public static com.google.gerrit.index.query.Predicate<ChangeData> parse​(String value)
      • open

        public static com.google.gerrit.index.query.Predicate<ChangeData> open()
      • closed

        public static com.google.gerrit.index.query.Predicate<ChangeData> closed()
      • getStatus

        public Change.Status getStatus()
        Get the status for this predicate.
        Returns:
        the status, or null if this predicate is intended to never match any changes.
      • match

        public boolean match​(ChangeData object)
                      throws com.google.gwtorm.server.OrmException
        Throws:
        com.google.gwtorm.server.OrmException
      • getCost

        public int getCost()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.google.gerrit.index.query.OperatorPredicate<ChangeData>
      • equals

        public boolean equals​(Object other)
        Overrides:
        equals in class com.google.gerrit.index.query.OperatorPredicate<ChangeData>
      • toString

        public String toString()
        Overrides:
        toString in class com.google.gerrit.index.query.OperatorPredicate<ChangeData>