|
|
||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
| Uses of Predicate in uk.co.jezuk.mango |
|---|
| Methods in uk.co.jezuk.mango that return Predicate | ||
|---|---|---|
static
|
Predicates.All(java.util.Collection<Predicate<T>> preds)
|
|
static
|
Predicates.All(java.util.Iterator<Predicate<T>> preds)
|
|
static
|
Predicates.All(java.lang.Object... preds)
A Predicate which returns true if all of the supplied Predicates are true. |
|
static
|
Predicates.And(Predicate<T> pred1,
Predicate<T> pred2)
A Predicate which returns the logical AND of two other Predicate. |
|
static
|
Predicates.Any(java.util.Collection<Predicate<T>> preds)
|
|
static
|
Predicates.Any(java.util.Iterator<Predicate<T>> preds)
|
|
static
|
Predicates.Any(java.lang.Object... preds)
A Predicate which returns true if any one of the supplied Predicates are true. |
|
static
|
Predicates.Constant(boolean constant)
A Predicate which returns a precomputed constant value |
|
static
|
Predicates.False()
A Predicate which always returns false |
|
static
|
Bind.First(BinaryPredicate<T1,T2> p,
T1 c)
Special case which adapts a BinaryPredicate to a Predicate. |
|
static
|
Predicates.IsNull()
A Predicate which checks whether the passed object
reference is null. |
|
static
|
Predicates.Nand(Predicate<T> pred1,
Predicate<T> pred2)
A Predicate which returns the logical NAND of two other Predicate. |
|
static
|
Predicates.Nor(Predicate<T> pred1,
Predicate<T> pred2)
A Predicate which returns the logical NOR of two other Predicate. |
|
static
|
Predicates.Not(Predicate<T> pred)
A Predicate which is the logical negation of some other Predicate. |
|
static
|
Predicates.NotNull()
A Predicate which checks whether the passed object
reference is not null. |
|
static
|
Predicates.OneOf(java.util.Collection<Predicate<T>> preds)
|
|
static
|
Predicates.OneOf(java.util.Iterator<Predicate<T>> preds)
|
|
static
|
Predicates.OneOf(java.lang.Object... preds)
A Predicate which returns true if only one of the supplied Predicates is true. |
|
static
|
Predicates.Or(Predicate<T> pred1,
Predicate<T> pred2)
A Predicate which returns the logical OR of two other Predicate. |
|
static
|
Bind.Second(BinaryPredicate<T1,T2> p,
T2 c)
Special case which adapts a BinaryPredicate to a Predicate. |
|
static
|
Predicates.True()
A Predicate which always returns true |
|
static
|
Predicates.Xnor(Predicate<T> pred1,
Predicate<T> pred2)
A Predicate which returns the logical XNOR of two other Predicate. |
|
static
|
Predicates.Xor(Predicate<T> pred1,
Predicate<T> pred2)
A Predicate which returns the logical XOR of two other Predicate. |
|
| Methods in uk.co.jezuk.mango with parameters of type Predicate | ||
|---|---|---|
static
|
Predicates.And(Predicate<T> pred1,
Predicate<T> pred2)
A Predicate which returns the logical AND of two other Predicate. |
|
static
|
Predicates.And(Predicate<T> pred1,
Predicate<T> pred2)
A Predicate which returns the logical AND of two other Predicate. |
|
static
|
Algorithms.countIf(java.util.Collection<T> collection,
int start,
int end,
Predicate<? super T> test)
|
|
static
|
Algorithms.countIf(java.util.Collection<T> collection,
Predicate<? super T> test)
CountIf is similar to Count, but more general. |
|
static
|
Algorithms.countIf(java.util.Iterator<T> iterator,
Predicate<? super T> test)
|
|
static
|
Algorithms.countIf(java.util.List<T> list,
int start,
int end,
Predicate<? super T> test)
|
|
static
|
Algorithms.countIfNot(java.util.Collection<T> collection,
int start,
int end,
Predicate<? super T> test)
|
|
static
|
Algorithms.countIfNot(java.util.Collection<T> collection,
Predicate<? super T> test)
CountIfNot is the complement of CountIf. |
|
static
|
Algorithms.countIfNot(java.util.Iterator<T> iterator,
Predicate<? super T> test)
|
|
static
|
Algorithms.countIfNot(java.util.List<T> list,
int start,
int end,
Predicate<? super T> test)
|
|
static
|
Algorithms.findIf(java.util.Collection<T> collection,
int start,
int end,
Predicate<? super T> test)
|
|
static
|
Algorithms.findIf(java.util.Collection<T> collection,
Predicate<? super T> test)
Searchs the sequence traversed by the Iterator and returns the first object encountered for which the Predicate returns true. |
|
static
|
Algorithms.findIf(java.util.Iterator<T> iterator,
Predicate<? super T> test)
|
|
static
|
Algorithms.findIf(java.util.List<T> list,
int start,
int end,
Predicate<? super T> test)
|
|
static
|
Algorithms.findIfNot(java.util.Collection<T> collection,
int start,
int end,
Predicate<? super T> test)
|
|
static
|
Algorithms.findIfNot(java.util.Collection<T> collection,
Predicate<? super T> test)
Searchs the sequence traversed by the Iterator and returns the first object encountered for which the Predicate returns false. |
|
static
|
Algorithms.findIfNot(java.util.Iterator<T> iterator,
Predicate<? super T> test)
|
|
static
|
Algorithms.findIfNot(java.util.List<T> list,
int start,
int end,
Predicate<? super T> test)
|
|
static
|
Algorithms.findPositionIf(java.util.Collection<T> collection,
int start,
int end,
Predicate<? super T> pred)
|
|
static
|
Algorithms.findPositionIf(java.util.Collection<T> collection,
Predicate<? super T> pred)
|
|
static
|
Algorithms.findPositionIf(java.util.Iterator<T> iterator,
Predicate<? super T> pred)
|
|
static
|
Algorithms.findPositionIf(java.util.List<T> list,
int start,
int end,
Predicate<? super T> pred)
|
|
static
|
Predicates.Nand(Predicate<T> pred1,
Predicate<T> pred2)
A Predicate which returns the logical NAND of two other Predicate. |
|
static
|
Predicates.Nand(Predicate<T> pred1,
Predicate<T> pred2)
A Predicate which returns the logical NAND of two other Predicate. |
|
static
|
Predicates.Nor(Predicate<T> pred1,
Predicate<T> pred2)
A Predicate which returns the logical NOR of two other Predicate. |
|
static
|
Predicates.Nor(Predicate<T> pred1,
Predicate<T> pred2)
A Predicate which returns the logical NOR of two other Predicate. |
|
static
|
Predicates.Not(Predicate<T> pred)
A Predicate which is the logical negation of some other Predicate. |
|
static
|
Predicates.Or(Predicate<T> pred1,
Predicate<T> pred2)
A Predicate which returns the logical OR of two other Predicate. |
|
static
|
Predicates.Or(Predicate<T> pred1,
Predicate<T> pred2)
A Predicate which returns the logical OR of two other Predicate. |
|
static
|
Algorithms.partition(java.util.Collection<T> collection,
int start,
int end,
Predicate<? super T> pred)
|
|
static
|
Algorithms.partition(java.util.Collection<T> collection,
int start,
int end,
Predicate<? super T> pred,
C results)
|
|
static
|
Algorithms.partition(java.util.Collection<T> collection,
Predicate<? super T> pred)
Partitions the supplied collections into two. |
|
static
|
Algorithms.partition(java.util.Collection<T> collection,
Predicate<? super T> pred,
C results)
|
|
static
|
Algorithms.partition(java.util.Iterator<T> iterator,
Predicate<? super T> pred)
|
|
static
|
Algorithms.partition(java.util.Iterator<T> iterator,
Predicate<? super T> pred,
C results)
|
|
static
|
Algorithms.partition(java.util.List<T> list,
int start,
int end,
Predicate<? super T> pred)
|
|
static
|
Algorithms.partition(java.util.List<T> list,
int start,
int end,
Predicate<? super T> pred,
C results)
|
|
static
|
Algorithms.removeIf(java.util.Collection<T> collection,
int start,
int end,
Predicate<? super T> pred)
|
|
static
|
Algorithms.removeIf(java.util.Collection<T> collection,
Predicate<? super T> pred)
Removes objects which match test from the sequence. |
|
static
|
Algorithms.removeIf(java.util.Iterator<T> iterator,
Predicate<? super T> pred)
|
|
static
|
Algorithms.removeIf(java.util.List<T> list,
int start,
int end,
Predicate<? super T> pred)
|
|
static
|
Iterators.SelectingIterator(java.util.Iterator<T> iterator,
Predicate<? super T> predicate)
A SelectingIterator enumerates only those elements of a collection
that match the supplied Predicate. |
|
static
|
Iterators.SkippingIterator(java.util.Iterator<T> iterator,
Predicate<? super T> predicate)
A SkippingIterator enumerates a sequence,
stepping over the elements
that match the supplied Predicate. |
|
static
|
Predicates.Xnor(Predicate<T> pred1,
Predicate<T> pred2)
A Predicate which returns the logical XNOR of two other Predicate. |
|
static
|
Predicates.Xnor(Predicate<T> pred1,
Predicate<T> pred2)
A Predicate which returns the logical XNOR of two other Predicate. |
|
static
|
Predicates.Xor(Predicate<T> pred1,
Predicate<T> pred2)
A Predicate which returns the logical XOR of two other Predicate. |
|
static
|
Predicates.Xor(Predicate<T> pred1,
Predicate<T> pred2)
A Predicate which returns the logical XOR of two other Predicate. |
|
| Method parameters in uk.co.jezuk.mango with type arguments of type Predicate | ||
|---|---|---|
static
|
Predicates.All(java.util.Collection<Predicate<T>> preds)
|
|
static
|
Predicates.All(java.util.Iterator<Predicate<T>> preds)
|
|
static
|
Predicates.Any(java.util.Collection<Predicate<T>> preds)
|
|
static
|
Predicates.Any(java.util.Iterator<Predicate<T>> preds)
|
|
static
|
Predicates.OneOf(java.util.Collection<Predicate<T>> preds)
|
|
static
|
Predicates.OneOf(java.util.Iterator<Predicate<T>> preds)
|
|
|
|
||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||