public class AndSource<T> extends AndPredicate<T> implements DataSource<T>, java.util.Comparator<Predicate<T>>
Modifier and Type | Field and Description |
---|---|
protected DataSource<T> |
source |
Constructor and Description |
---|
AndSource(java.util.Collection<? extends Predicate<T>> that) |
AndSource(java.util.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 java.util.List<T> |
transformBuffer(java.util.List<T> buffer) |
copy, equals, getChild, getChildCount, getChildren, getCost, hashCode, toString
and, and, any, asMatchable, estimateCost, not, or, or
protected final DataSource<T> source
public AndSource(Predicate<T> that, IsVisibleToPredicate<T> isVisibleToPredicate)
public AndSource(Predicate<T> that, IsVisibleToPredicate<T> isVisibleToPredicate, int start)
public AndSource(java.util.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 java.util.List<T> transformBuffer(java.util.List<T> buffer) throws com.google.gwtorm.server.OrmRuntimeException
com.google.gwtorm.server.OrmRuntimeException
public int getCardinality()
getCardinality
in interface DataSource<T>
DataSource.read()
.