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?
|
com.google.gwtorm.server.ResultSet<T> |
read() |
protected List<T> |
transformBuffer(List<T> buffer) |
copy, equals, getChild, getChildCount, getChildren, getCost, hashCode, toString
and, and, any, asMatchable, estimateCost, 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 com.google.gwtorm.server.ResultSet<T> read() throws com.google.gwtorm.server.OrmException
read
in interface DataSource<T>
com.google.gwtorm.server.OrmException
public boolean isMatchable()
isMatchable
in class AndPredicate<T>
public boolean match(T object) throws com.google.gwtorm.server.OrmException
Matchable
protected List<T> transformBuffer(List<T> buffer) throws com.google.gwtorm.server.OrmRuntimeException
com.google.gwtorm.server.OrmRuntimeException
public int getCardinality()
getCardinality
in interface DataSource<T>
DataSource.read()
.