Class AndChangeSource

    • Constructor Detail

      • AndChangeSource

        public AndChangeSource​(Collection<com.google.gerrit.index.query.Predicate<ChangeData>> that)
      • AndChangeSource

        public AndChangeSource​(com.google.gerrit.index.query.Predicate<ChangeData> that,
                               com.google.gerrit.index.query.IsVisibleToPredicate<ChangeData> isVisibleToPredicate,
                               int start)
    • Method Detail

      • hasChange

        public boolean hasChange()
        Specified by:
        hasChange in interface ChangeDataSource
        Returns:
        true if all returned ChangeData.hasChange() will be true.
      • transformBuffer

        protected List<ChangeData> transformBuffer​(List<ChangeData> buffer)
                                            throws com.google.gwtorm.server.OrmRuntimeException
        Overrides:
        transformBuffer in class com.google.gerrit.index.query.AndSource<ChangeData>
        Throws:
        com.google.gwtorm.server.OrmRuntimeException
      • compare

        public int compare​(com.google.gerrit.index.query.Predicate<ChangeData> a,
                           com.google.gerrit.index.query.Predicate<ChangeData> b)
        Specified by:
        compare in interface Comparator<com.google.gerrit.index.query.Predicate<ChangeData>>
        Overrides:
        compare in class com.google.gerrit.index.query.AndSource<ChangeData>