public class AndSource<T> extends AndPredicate<T> implements DataSource<T>, Comparator<Predicate<T>>
Modifier and Type | Field and Description |
---|---|
protected DataSource<T> |
source |
Constructor and Description |
---|
AndSource(Collection<? extends Predicate<T>> that) |
AndSource(Collection<? extends Predicate<T>> that,
IsVisibleToPredicate<T> isVisibleToPredicate,
int start) |
AndSource(Predicate<T> that,
IsVisibleToPredicate<T> isVisibleToPredicate) |
AndSource(Predicate<T> that,
IsVisibleToPredicate<T> isVisibleToPredicate,
int start) |
Modifier and Type | Method and Description |
---|---|
int |
compare(Predicate<T> a,
Predicate<T> b) |
int |
getCardinality() |
boolean |
isMatchable() |
boolean |
match(T object)
Does this predicate match this object?
|
ResultSet<T> |
read() |
ResultSet<FieldBundle> |
readRaw() |
protected List<T> |
transformBuffer(List<T> buffer) |
copy, equals, getChild, getChildCount, getChildren, getCost, hashCode, toString
and, and, any, asMatchable, estimateCost, getLeafCount, not, or, or
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
protected final DataSource<T> source
public AndSource(Collection<? extends Predicate<T>> that)
public AndSource(Predicate<T> that, IsVisibleToPredicate<T> isVisibleToPredicate)
public AndSource(Predicate<T> that, IsVisibleToPredicate<T> isVisibleToPredicate, int start)
public AndSource(Collection<? extends Predicate<T>> that, IsVisibleToPredicate<T> isVisibleToPredicate, int start)
public ResultSet<T> read()
read
in interface DataSource<T>
public ResultSet<FieldBundle> readRaw()
readRaw
in interface DataSource<T>
public boolean isMatchable()
isMatchable
in class AndPredicate<T>
public boolean match(T object)
Matchable
public int getCardinality()
getCardinality
in interface DataSource<T>
DataSource.read()
.