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() |
com.google.gwtorm.server.ResultSet<FieldBundle> |
readRaw() |
protected java.util.List<T> |
transformBuffer(java.util.List<T> buffer) |
copy, equals, getChild, getChildCount, getChildren, getCost, hashCode, toStringand, and, any, asMatchable, estimateCost, getLeafCount, not, or, orprotected 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.OrmExceptionpublic com.google.gwtorm.server.ResultSet<FieldBundle> readRaw() throws com.google.gwtorm.server.OrmException
readRaw in interface DataSource<T>com.google.gwtorm.server.OrmExceptionpublic boolean isMatchable()
isMatchable in class AndPredicate<T>public boolean match(T object) throws com.google.gwtorm.server.OrmException
Matchableprotected java.util.List<T> transformBuffer(java.util.List<T> buffer) throws com.google.gwtorm.server.OrmRuntimeException
com.google.gwtorm.server.OrmRuntimeExceptionpublic int getCardinality()
getCardinality in interface DataSource<T>DataSource.read().