T - public class Or<T,C> extends ExtractorBase<T,Boolean,C> implements CompositePredicate<T,List<Predicate<T,C>>,C,Or<T,C>>, Serializable
cost, costUnit, initialCost, invocations, nanos, totalCost| Constructor and Description |
|---|
Or(double initialCost,
TimeUnit costUnit) |
Or(double initialCost,
TimeUnit costUnit,
Iterable<Predicate<T,C>> parts) |
Or(double initialCost,
TimeUnit costUnit,
Predicate<T,C>... parts) |
| Modifier and Type | Method and Description |
|---|---|
Or<T,C> |
add(Predicate<T,C> part) |
Object |
clone() |
ComparisonResult |
compareTo(Extractor<T,Boolean,C> otherPredicate)
Basic comparisons with True and False.
|
protected Boolean |
extractInternal(C context,
Map<C,Map<Extractor<T,? super Boolean,C>,? super Boolean>> cache,
T... obj) |
double |
getCost() |
List<Predicate<T,C>> |
getParts() |
boolean |
isContextDependent() |
Extractor<T,Boolean,C> |
map(int[] map)
Applies mapping to extractor.
|
Predicate<T,C> |
normalize()
Normalizes predicate by removing less restrictive parts in AND or more restrictive parts in OR,
and analyzing if predicate is always TRUE or always FALSE.
|
Set<Integer> |
parameterIndices() |
Predicate<T,C> |
remove(Predicate<T,C> part) |
String |
toString() |
createCacheEntry, equals, extractpublic ComparisonResult compareTo(Extractor<T,Boolean,C> otherPredicate)
ExtractorBaseprotected Boolean extractInternal(C context, Map<C,Map<Extractor<T,? super Boolean,C>,? super Boolean>> cache, T... obj)
extractInternal in class ExtractorBase<T,Boolean,C>public Set<Integer> parameterIndices()
parameterIndices in interface Extractor<T,Boolean,C>public Predicate<T,C> normalize()
CompositePredicatepublic boolean isContextDependent()
isContextDependent in interface Extractor<T,Boolean,C>public double getCost()
public Extractor<T,Boolean,C> map(int[] map)
Mappablepublic Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException