Uses of Interface
uk.co.jezuk.mango.Predicate

Uses of Predicate in uk.co.jezuk.mango
 

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



Copyright © 2002-2010 JezUK Ltd.