Class Predicate.Any<T>

java.lang.Object
com.google.gerrit.index.query.Predicate<T>
com.google.gerrit.index.query.Predicate.Any<T>
All Implemented Interfaces:
Matchable<T>
Enclosing class:
Predicate<T>

public static class Predicate.Any<T> extends Predicate<T> implements Matchable<T>
  • Method Details

    • copy

      public Predicate<T> copy(Collection<? extends Predicate<T>> children)
      Description copied from class: Predicate
      Create a copy of this predicate, with new children.
      Specified by:
      copy in class Predicate<T>
    • match

      public boolean match(T object)
      Description copied from interface: Matchable
      Does this predicate match this object?
      Specified by:
      match in interface Matchable<T>
    • getCost

      public int getCost()
      Description copied from interface: Matchable
      Returns a cost estimate to run this predicate, higher figures cost more.
      Specified by:
      getCost in interface Matchable<T>
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class Predicate<T>
    • equals

      public boolean equals(Object other)
      Specified by:
      equals in class Predicate<T>