Uses of Interface
org.apache.commons.collections.Predicate

Packages that use Predicate
org.apache.commons.collections This package contains the interfaces and utilities shared across all the subpackages of this component. 
org.apache.commons.collections.bag This package contains implementations of the Bag and SortedBag interfaces. 
org.apache.commons.collections.buffer This package contains implementations of the Buffer interface. 
org.apache.commons.collections.collection This package contains implementations of the Collection interface. 
org.apache.commons.collections.functors This package contains implementations of the Closure, Predicate, Transformer and Factory interfaces. 
org.apache.commons.collections.iterators This package contains implementations of the Iterator interface. 
org.apache.commons.collections.list This package contains implementations of the List interface. 
org.apache.commons.collections.map This package contains implementations of the Map, IterableMap, OrderedMap and SortedMap interfaces. 
org.apache.commons.collections.set This package contains implementations of the Set and SortedSet interfaces. 
 

Uses of Predicate in org.apache.commons.collections
 

Methods in org.apache.commons.collections that return Predicate
static
<T> Predicate<T>
PredicateUtils.allPredicate(Collection<Predicate<? super T>> predicates)
          Create a new Predicate that returns true only if all of the specified predicates are true.
static
<T> Predicate<T>
PredicateUtils.allPredicate(Predicate<? super T>[] predicates)
          Create a new Predicate that returns true only if all of the specified predicates are true.
static
<T> Predicate<T>
PredicateUtils.andPredicate(Predicate<? super T> predicate1, Predicate<? super T> predicate2)
          Create a new Predicate that returns true only if both of the specified predicates are true.
static
<T> Predicate<T>
PredicateUtils.anyPredicate(Collection<Predicate<? super T>> predicates)
          Create a new Predicate that returns true if any of the specified predicates are true.
static
<T> Predicate<T>
PredicateUtils.anyPredicate(Predicate<? super T>[] predicates)
          Create a new Predicate that returns true if any of the specified predicates are true.
static
<T> Predicate<T>
PredicateUtils.asPredicate(Transformer<T,Boolean> transformer)
          Create a new Predicate that wraps a Transformer.
static
<T> Predicate<T>
PredicateUtils.eitherPredicate(Predicate<? super T> predicate1, Predicate<? super T> predicate2)
          Create a new Predicate that returns true if one, but not both, of the specified predicates are true.
static
<T> Predicate<T>
PredicateUtils.equalPredicate(T value)
          Creates a Predicate that checks if the input object is equal to the specified object using equals().
static Predicate PredicateUtils.exceptionPredicate()
          Gets a Predicate that always throws an exception.
static Predicate PredicateUtils.falsePredicate()
          Gets a Predicate that always returns false.
static
<T> Predicate<T>
PredicateUtils.identityPredicate(T value)
          Creates a Predicate that checks if the input object is equal to the specified object by identity.
static
<T> Predicate<T>
PredicateUtils.instanceofPredicate(Class<T> type)
          Creates a Predicate that checks if the object passed in is of a particular type, using instanceof.
static Predicate PredicateUtils.invokerPredicate(String methodName)
          Creates a Predicate that invokes a method on the input object.
static Predicate PredicateUtils.invokerPredicate(String methodName, Class[] paramTypes, Object[] args)
          Creates a Predicate that invokes a method on the input object.
static
<T> Predicate<T>
PredicateUtils.neitherPredicate(Predicate<? super T> predicate1, Predicate<? super T> predicate2)
          Create a new Predicate that returns true if neither of the specified predicates are true.
static
<T> Predicate<T>
PredicateUtils.nonePredicate(Collection<Predicate<? super T>> predicates)
          Create a new Predicate that returns true if none of the specified predicates are true.
static
<T> Predicate<T>
PredicateUtils.nonePredicate(Predicate<? super T>[] predicates)
          Create a new Predicate that returns true if none of the specified predicates are true.
static Predicate PredicateUtils.notNullPredicate()
          Gets a Predicate that checks if the input object passed in is not null.
static
<T> Predicate<T>
PredicateUtils.notPredicate(Predicate<T> predicate)
          Create a new Predicate that returns true if the specified predicate returns false and vice versa.
static
<T> Predicate<T>
PredicateUtils.nullIsExceptionPredicate(Predicate<T> predicate)
          Gets a Predicate that throws an exception if the input object is null, otherwise it calls the specified Predicate.
static
<T> Predicate<T>
PredicateUtils.nullIsFalsePredicate(Predicate<T> predicate)
          Gets a Predicate that returns false if the input object is null, otherwise it calls the specified Predicate.
static
<T> Predicate<T>
PredicateUtils.nullIsTruePredicate(Predicate<T> predicate)
          Gets a Predicate that returns true if the input object is null, otherwise it calls the specified Predicate.
static Predicate PredicateUtils.nullPredicate()
          Gets a Predicate that checks if the input object passed in is null.
static
<T> Predicate<T>
PredicateUtils.onePredicate(Collection<Predicate<? super T>> predicates)
          Create a new Predicate that returns true if only one of the specified predicates are true.
static
<T> Predicate<T>
PredicateUtils.onePredicate(Predicate<? super T>[] predicates)
          Create a new Predicate that returns true if only one of the specified predicates are true.
static
<T> Predicate<T>
PredicateUtils.orPredicate(Predicate<? super T> predicate1, Predicate<? super T> predicate2)
          Create a new Predicate that returns true if either of the specified predicates are true.
static
<I,O> Predicate<I>
PredicateUtils.transformedPredicate(Transformer<I,? extends O> transformer, Predicate<? super O> predicate)
          Creates a predicate that transforms the input object before passing it to the predicate.
static Predicate PredicateUtils.truePredicate()
          Gets a Predicate that always returns true.
static Predicate PredicateUtils.uniquePredicate()
          Creates a Predicate that returns true the first time an object is encountered, and false if the same object is received again.
 

Methods in org.apache.commons.collections with parameters of type Predicate
static
<T> Predicate<T>
PredicateUtils.allPredicate(Predicate<? super T>[] predicates)
          Create a new Predicate that returns true only if all of the specified predicates are true.
static
<T> Predicate<T>
PredicateUtils.andPredicate(Predicate<? super T> predicate1, Predicate<? super T> predicate2)
          Create a new Predicate that returns true only if both of the specified predicates are true.
static
<T> Predicate<T>
PredicateUtils.andPredicate(Predicate<? super T> predicate1, Predicate<? super T> predicate2)
          Create a new Predicate that returns true only if both of the specified predicates are true.
static
<T> Predicate<T>
PredicateUtils.anyPredicate(Predicate<? super T>[] predicates)
          Create a new Predicate that returns true if any of the specified predicates are true.
static
<T> Transformer<T,Boolean>
TransformerUtils.asTransformer(Predicate<T> predicate)
          Creates a Transformer that calls a Predicate each time the transformer is used.
static
<E> int
CollectionUtils.countMatches(Collection<E> inputCollection, Predicate<E> predicate)
          Counts the number of elements in the input collection that match the predicate.
static
<T> Closure<T>
ClosureUtils.doWhileClosure(Closure<? super T> closure, Predicate<? super T> predicate)
          Creates a Closure that will call the closure once and then repeatedly until the predicate returns false.
static
<T> Predicate<T>
PredicateUtils.eitherPredicate(Predicate<? super T> predicate1, Predicate<? super T> predicate2)
          Create a new Predicate that returns true if one, but not both, of the specified predicates are true.
static
<T> Predicate<T>
PredicateUtils.eitherPredicate(Predicate<? super T> predicate1, Predicate<? super T> predicate2)
          Create a new Predicate that returns true if one, but not both, of the specified predicates are true.
static
<E> boolean
CollectionUtils.exists(Collection<E> collection, Predicate<E> predicate)
          Answers true if a predicate is true for at least one element of a collection.
static
<E> void
CollectionUtils.filter(Collection<E> collection, Predicate<E> predicate)
          Filter the collection by applying a Predicate to each element.
static
<E> Iterator<E>
IteratorUtils.filteredIterator(Iterator<E> iterator, Predicate<? super E> predicate)
          Gets an iterator that filters another iterator.
static
<E> ListIterator<E>
IteratorUtils.filteredListIterator(ListIterator<E> listIterator, Predicate<? super E> predicate)
          Gets a list iterator that filters another list iterator.
static
<E> E
CollectionUtils.find(Collection<E> collection, Predicate<E> predicate)
          Finds the first element in the given collection which matches the given predicate.
static
<T> Closure<T>
ClosureUtils.ifClosure(Predicate<? super T> predicate, Closure<? super T> trueClosure, Closure<? super T> falseClosure)
          Create a new Closure that calls one of two closures depending on the specified predicate.
static
<T> Predicate<T>
PredicateUtils.neitherPredicate(Predicate<? super T> predicate1, Predicate<? super T> predicate2)
          Create a new Predicate that returns true if neither of the specified predicates are true.
static
<T> Predicate<T>
PredicateUtils.neitherPredicate(Predicate<? super T> predicate1, Predicate<? super T> predicate2)
          Create a new Predicate that returns true if neither of the specified predicates are true.
static
<T> Predicate<T>
PredicateUtils.nonePredicate(Predicate<? super T>[] predicates)
          Create a new Predicate that returns true if none of the specified predicates are true.
static
<T> Predicate<T>
PredicateUtils.notPredicate(Predicate<T> predicate)
          Create a new Predicate that returns true if the specified predicate returns false and vice versa.
static
<T> Predicate<T>
PredicateUtils.nullIsExceptionPredicate(Predicate<T> predicate)
          Gets a Predicate that throws an exception if the input object is null, otherwise it calls the specified Predicate.
static
<T> Predicate<T>
PredicateUtils.nullIsFalsePredicate(Predicate<T> predicate)
          Gets a Predicate that returns false if the input object is null, otherwise it calls the specified Predicate.
static
<T> Predicate<T>
PredicateUtils.nullIsTruePredicate(Predicate<T> predicate)
          Gets a Predicate that returns true if the input object is null, otherwise it calls the specified Predicate.
static
<T> Predicate<T>
PredicateUtils.onePredicate(Predicate<? super T>[] predicates)
          Create a new Predicate that returns true if only one of the specified predicates are true.
static
<T> Predicate<T>
PredicateUtils.orPredicate(Predicate<? super T> predicate1, Predicate<? super T> predicate2)
          Create a new Predicate that returns true if either of the specified predicates are true.
static
<T> Predicate<T>
PredicateUtils.orPredicate(Predicate<? super T> predicate1, Predicate<? super T> predicate2)
          Create a new Predicate that returns true if either of the specified predicates are true.
static
<E> Bag<E>
BagUtils.predicatedBag(Bag<E> bag, Predicate<? super E> predicate)
          Returns a predicated (validating) bag backed by the given bag.
static
<E> Buffer<E>
BufferUtils.predicatedBuffer(Buffer<E> buffer, Predicate<E> predicate)
          Returns a predicated (validating) buffer backed by the given buffer.
static
<E> Collection<E>
CollectionUtils.predicatedCollection(Collection<E> collection, Predicate<E> predicate)
          Returns a predicated (validating) collection backed by the given collection.
static
<E> List<E>
ListUtils.predicatedList(List<E> list, Predicate<? super E> predicate)
          Returns a predicated (validating) list backed by the given list.
static
<K,V> Map<K,V>
MapUtils.predicatedMap(Map<K,V> map, Predicate<? super K> keyPred, Predicate<? super V> valuePred)
          Returns a predicated (validating) map backed by the given map.
static
<K,V> Map<K,V>
MapUtils.predicatedMap(Map<K,V> map, Predicate<? super K> keyPred, Predicate<? super V> valuePred)
          Returns a predicated (validating) map backed by the given map.
static
<E> Set<E>
SetUtils.predicatedSet(Set<E> set, Predicate<? super E> predicate)
          Returns a predicated (validating) set backed by the given set.
static
<E> SortedBag<E>
BagUtils.predicatedSortedBag(SortedBag<E> bag, Predicate<? super E> predicate)
          Returns a predicated (validating) sorted bag backed by the given sorted bag.
static
<K,V> SortedMap<K,V>
MapUtils.predicatedSortedMap(SortedMap<K,V> map, Predicate<? super K> keyPred, Predicate<? super V> valuePred)
          Returns a predicated (validating) sorted map backed by the given map.
static
<K,V> SortedMap<K,V>
MapUtils.predicatedSortedMap(SortedMap<K,V> map, Predicate<? super K> keyPred, Predicate<? super V> valuePred)
          Returns a predicated (validating) sorted map backed by the given map.
static
<E> SortedSet<E>
SetUtils.predicatedSortedSet(SortedSet<E> set, Predicate<? super E> predicate)
          Returns a predicated (validating) sorted set backed by the given sorted set.
static
<E> Collection<E>
CollectionUtils.select(Collection<E> inputCollection, Predicate<E> predicate)
          Selects all elements from input collection which match the given predicate into an output collection.
static
<E> void
CollectionUtils.select(Collection<E> inputCollection, Predicate<E> predicate, Collection<E> outputCollection)
          Selects all elements from input collection which match the given predicate and adds them to outputCollection.
static
<E> Collection<E>
CollectionUtils.selectRejected(Collection<E> inputCollection, Predicate<E> predicate)
          Selects all elements from inputCollection which don't match the given predicate into an output collection.
static
<E> void
CollectionUtils.selectRejected(Collection<E> inputCollection, Predicate<E> predicate, Collection<E> outputCollection)
          Selects all elements from inputCollection which don't match the given predicate and adds them to outputCollection.
static
<T> Closure<T>
ClosureUtils.switchClosure(Predicate<? super T>[] predicates, Closure<? super T>[] closures)
          Create a new Closure that calls one of the closures depending on the predicates.
static
<T> Closure<T>
ClosureUtils.switchClosure(Predicate<? super T>[] predicates, Closure<? super T>[] closures, Closure<? super T> defaultClosure)
          Create a new Closure that calls one of the closures depending on the predicates.
static
<I,O> Transformer<I,O>
TransformerUtils.switchTransformer(Predicate<? super I>[] predicates, Transformer<? super I,? extends O>[] transformers)
          Create a new Transformer that calls one of the transformers depending on the predicates.
static
<I,O> Transformer<I,O>
TransformerUtils.switchTransformer(Predicate<? super I>[] predicates, Transformer<? super I,? extends O>[] transformers, Transformer<? super I,? extends O> defaultTransformer)
          Create a new Transformer that calls one of the transformers depending on the predicates.
static
<I,O> Transformer<I,O>
TransformerUtils.switchTransformer(Predicate<I> predicate, Transformer<? super I,? extends O> trueTransformer, Transformer<? super I,? extends O> falseTransformer)
          Create a new Transformer that calls one of two transformers depending on the specified predicate.
static
<I,O> Predicate<I>
PredicateUtils.transformedPredicate(Transformer<I,? extends O> transformer, Predicate<? super O> predicate)
          Creates a predicate that transforms the input object before passing it to the predicate.
static
<T> Closure<T>
ClosureUtils.whileClosure(Predicate<? super T> predicate, Closure<? super T> closure)
          Creates a Closure that will call the closure repeatedly until the predicate returns false.
 

Method parameters in org.apache.commons.collections with type arguments of type Predicate
static
<T> Predicate<T>
PredicateUtils.allPredicate(Collection<Predicate<? super T>> predicates)
          Create a new Predicate that returns true only if all of the specified predicates are true.
static
<T> Predicate<T>
PredicateUtils.anyPredicate(Collection<Predicate<? super T>> predicates)
          Create a new Predicate that returns true if any of the specified predicates are true.
static
<T> Predicate<T>
PredicateUtils.nonePredicate(Collection<Predicate<? super T>> predicates)
          Create a new Predicate that returns true if none of the specified predicates are true.
static
<T> Predicate<T>
PredicateUtils.onePredicate(Collection<Predicate<? super T>> predicates)
          Create a new Predicate that returns true if only one of the specified predicates are true.
static
<T> Closure<T>
ClosureUtils.switchClosure(Map<Predicate<? super T>,Closure<? super T>> predicatesAndClosures)
          Create a new Closure that calls one of the closures depending on the predicates.
static
<I,O> Transformer<I,O>
TransformerUtils.switchTransformer(Map<Predicate<? super I>,Transformer<? super I,? extends O>> predicatesAndTransformers)
          Create a new Transformer that calls one of the transformers depending on the predicates.
 

Uses of Predicate in org.apache.commons.collections.bag
 

Methods in org.apache.commons.collections.bag with parameters of type Predicate
static
<E> Bag<E>
PredicatedBag.decorate(Bag<E> bag, Predicate<? super E> predicate)
          Factory method to create a predicated (validating) bag.
static
<E> SortedBag<E>
PredicatedSortedBag.decorate(SortedBag<E> bag, Predicate<? super E> predicate)
          Factory method to create a predicated (validating) bag.
 

Constructors in org.apache.commons.collections.bag with parameters of type Predicate
PredicatedBag(Bag<E> bag, Predicate<? super E> predicate)
          Constructor that wraps (not copies).
PredicatedSortedBag(SortedBag<E> bag, Predicate<? super E> predicate)
          Constructor that wraps (not copies).
 

Uses of Predicate in org.apache.commons.collections.buffer
 

Methods in org.apache.commons.collections.buffer with parameters of type Predicate
static
<E> Buffer<E>
PredicatedBuffer.decorate(Buffer<E> buffer, Predicate<? super E> predicate)
          Factory method to create a predicated (validating) buffer.
 

Constructors in org.apache.commons.collections.buffer with parameters of type Predicate
PredicatedBuffer(Buffer<E> buffer, Predicate<? super E> predicate)
          Constructor that wraps (not copies).
 

Uses of Predicate in org.apache.commons.collections.collection
 

Fields in org.apache.commons.collections.collection declared as Predicate
protected  Predicate<? super E> PredicatedCollection.predicate
          The predicate to use
 

Methods in org.apache.commons.collections.collection with parameters of type Predicate
static
<E> Collection
PredicatedCollection.decorate(Collection<E> coll, Predicate<? super E> predicate)
          Factory method to create a predicated (validating) collection.
 

Constructors in org.apache.commons.collections.collection with parameters of type Predicate
PredicatedCollection(Collection<E> coll, Predicate<? super E> predicate)
          Constructor that wraps (not copies).
 

Uses of Predicate in org.apache.commons.collections.functors
 

Subinterfaces of Predicate in org.apache.commons.collections.functors
 interface PredicateDecorator<T>
          Defines a predicate that decorates one or more other predicates.
 

Classes in org.apache.commons.collections.functors that implement Predicate
 class AllPredicate<T>
          Predicate implementation that returns true if all the predicates return true.
 class AndPredicate<T>
          Predicate implementation that returns true if both the predicates return true.
 class AnyPredicate<T>
          Predicate implementation that returns true if any of the predicates return true.
 class EqualPredicate<T>
          Predicate implementation that returns true if the input is the same object as the one stored in this predicate by equals.
 class ExceptionPredicate<T>
          Predicate implementation that always throws an exception.
 class FalsePredicate<T>
          Predicate implementation that always returns false.
 class IdentityPredicate<T>
          Predicate implementation that returns true if the input is the same object as the one stored in this predicate.
 class InstanceofPredicate<T>
          Predicate implementation that returns true if the input is an instanceof the type stored in this predicate.
 class NonePredicate<T>
          Predicate implementation that returns true if none of the predicates return true.
 class NotNullPredicate<T>
          Predicate implementation that returns true if the input is not null.
 class NotPredicate<T>
          Predicate implementation that returns the opposite of the decorated predicate.
 class NullIsExceptionPredicate<T>
          Predicate implementation that throws an exception if the input is null.
 class NullIsFalsePredicate<T>
          Predicate implementation that returns false if the input is null.
 class NullIsTruePredicate<T>
          Predicate implementation that returns true if the input is null.
 class NullPredicate<T>
          Predicate implementation that returns true if the input is null.
 class OnePredicate<T>
          Predicate implementation that returns true if only one of the predicates return true.
 class OrPredicate<T>
          Predicate implementation that returns true if either of the predicates return true.
 class TransformedPredicate<I,O>
          Predicate implementation that transforms the given object before invoking another Predicate.
 class TransformerPredicate<T>
          Predicate implementation that returns the result of a transformer.
 class TruePredicate<T>
          Predicate implementation that always returns true.
 class UniquePredicate<T>
          Predicate implementation that returns true the first time an object is passed into the predicate.
 

Fields in org.apache.commons.collections.functors declared as Predicate
static Predicate TruePredicate.INSTANCE
          Singleton predicate instance
static Predicate NullPredicate.INSTANCE
          Singleton predicate instance
static Predicate NotNullPredicate.INSTANCE
          Singleton predicate instance
static Predicate FalsePredicate.INSTANCE
          Singleton predicate instance
static Predicate ExceptionPredicate.INSTANCE
          Singleton predicate instance
 

Methods in org.apache.commons.collections.functors that return Predicate
static Predicate TruePredicate.getInstance()
          Factory returning the singleton instance.
static Predicate NullPredicate.getInstance()
          Factory returning the singleton instance.
static Predicate NotNullPredicate.getInstance()
          Factory returning the singleton instance.
static Predicate FalsePredicate.getInstance()
          Factory returning the singleton instance.
static Predicate ExceptionPredicate.getInstance()
          Factory returning the singleton instance.
static
<T> Predicate<T>
UniquePredicate.getInstance()
          Factory to create the predicate.
static
<T> Predicate<T>
InstanceofPredicate.getInstance(Class<T> type)
          Factory to create the identity predicate.
static
<T> Predicate<T>
OnePredicate.getInstance(Collection<Predicate<? super T>> predicates)
          Factory to create the predicate.
static
<T> Predicate<T>
NonePredicate.getInstance(Collection<Predicate<? super T>> predicates)
          Factory to create the predicate.
static
<T> Predicate<T>
AnyPredicate.getInstance(Collection<Predicate<? super T>> predicates)
          Factory to create the predicate.
static
<T> Predicate<T>
AllPredicate.getInstance(Collection<Predicate<? super T>> predicates)
          Factory to create the predicate.
static
<T> Predicate<T>
OnePredicate.getInstance(Predicate<? super T>[] predicates)
          Factory to create the predicate.
static
<T> Predicate<T>
NonePredicate.getInstance(Predicate<? super T>[] predicates)
          Factory to create the predicate.
static
<T> Predicate<T>
AnyPredicate.getInstance(Predicate<? super T>[] predicates)
          Factory to create the predicate.
static
<T> Predicate<T>
AllPredicate.getInstance(Predicate<? super T>[] predicates)
          Factory to create the predicate.
static
<T> Predicate<T>
OrPredicate.getInstance(Predicate<? super T> predicate1, Predicate<? super T> predicate2)
          Factory to create the predicate.
static
<T> Predicate<T>
AndPredicate.getInstance(Predicate<? super T> predicate1, Predicate<? super T> predicate2)
          Factory to create the predicate.
static
<T> Predicate<T>
NullIsTruePredicate.getInstance(Predicate<T> predicate)
          Factory to create the null true predicate.
static
<T> Predicate<T>
NullIsFalsePredicate.getInstance(Predicate<T> predicate)
          Factory to create the null false predicate.
static
<T> Predicate<T>
NullIsExceptionPredicate.getInstance(Predicate<T> predicate)
          Factory to create the null exception predicate.
static
<T> Predicate<T>
NotPredicate.getInstance(Predicate<T> predicate)
          Factory to create the not predicate.
static
<T> Predicate<T>
IdentityPredicate.getInstance(T object)
          Factory to create the identity predicate.
static
<T> Predicate<T>
EqualPredicate.getInstance(T object)
          Factory to create the identity predicate.
static
<I,O> Predicate
TransformedPredicate.getInstance(Transformer<I,? extends O> transformer, Predicate<? super O> predicate)
          Factory to create the predicate.
static
<T> Predicate<T>
TransformerPredicate.getInstance(Transformer<T,Boolean> transformer)
          Factory to create the predicate.
 Predicate<? super T> WhileClosure.getPredicate()
          Gets the predicate in use.
 Predicate<T> PredicateTransformer.getPredicate()
          Gets the predicate.
 Predicate<? super T> IfClosure.getPredicate()
          Gets the predicate.
 Predicate[] TransformedPredicate.getPredicates()
          Gets the predicate being decorated.
 Predicate<? super I>[] SwitchTransformer.getPredicates()
          Gets the predicates, do not modify the array.
 Predicate<? super T>[] SwitchClosure.getPredicates()
          Gets the predicates, do not modify the array.
 Predicate<? super T>[] PredicateDecorator.getPredicates()
          Gets the predicates being decorated as an array.
 Predicate<? super T>[] OrPredicate.getPredicates()
          Gets the two predicates being decorated as an array.
 Predicate<? super T>[] OnePredicate.getPredicates()
          Gets the predicates, do not modify the array.
 Predicate<? super T>[] NullIsTruePredicate.getPredicates()
          Gets the predicate being decorated.
 Predicate<? super T>[] NullIsFalsePredicate.getPredicates()
          Gets the predicate being decorated.
 Predicate<? super T>[] NullIsExceptionPredicate.getPredicates()
          Gets the predicate being decorated.
 Predicate<? super T>[] NotPredicate.getPredicates()
          Gets the predicate being decorated.
 Predicate<? super T>[] NonePredicate.getPredicates()
          Gets the predicates, do not modify the array.
 Predicate<? super T>[] AnyPredicate.getPredicates()
          Gets the predicates, do not modify the array.
 Predicate<? super T>[] AndPredicate.getPredicates()
          Gets the two predicates being decorated as an array.
 Predicate<? super T>[] AllPredicate.getPredicates()
          Gets the predicates, do not modify the array.
 

Methods in org.apache.commons.collections.functors with parameters of type Predicate
static
<I,O> Transformer<I,O>
SwitchTransformer.getInstance(Predicate<? super I>[] predicates, Transformer<? super I,? extends O>[] transformers, Transformer<? super I,? extends O> defaultTransformer)
          Factory method that performs validation and copies the parameter arrays.
static
<T> Predicate<T>
OnePredicate.getInstance(Predicate<? super T>[] predicates)
          Factory to create the predicate.
static
<T> Predicate<T>
NonePredicate.getInstance(Predicate<? super T>[] predicates)
          Factory to create the predicate.
static
<T> Predicate<T>
AnyPredicate.getInstance(Predicate<? super T>[] predicates)
          Factory to create the predicate.
static
<T> Predicate<T>
AllPredicate.getInstance(Predicate<? super T>[] predicates)
          Factory to create the predicate.
static
<T> Closure<T>
SwitchClosure.getInstance(Predicate<? super T>[] predicates, Closure<? super T>[] closures, Closure<? super T> defaultClosure)
          Factory method that performs validation and copies the parameter arrays.
static
<T> Closure<T>
WhileClosure.getInstance(Predicate<? super T> predicate, Closure<? super T> closure, boolean doLoop)
          Factory method that performs validation.
static
<T> Closure<T>
IfClosure.getInstance(Predicate<? super T> predicate, Closure<? super T> trueClosure, Closure<? super T> falseClosure)
          Factory method that performs validation.
static
<T> Predicate<T>
OrPredicate.getInstance(Predicate<? super T> predicate1, Predicate<? super T> predicate2)
          Factory to create the predicate.
static
<T> Predicate<T>
OrPredicate.getInstance(Predicate<? super T> predicate1, Predicate<? super T> predicate2)
          Factory to create the predicate.
static
<T> Predicate<T>
AndPredicate.getInstance(Predicate<? super T> predicate1, Predicate<? super T> predicate2)
          Factory to create the predicate.
static
<T> Predicate<T>
AndPredicate.getInstance(Predicate<? super T> predicate1, Predicate<? super T> predicate2)
          Factory to create the predicate.
static
<T> Transformer<T,Boolean>
PredicateTransformer.getInstance(Predicate<T> predicate)
          Factory method that performs validation.
static
<T> Predicate<T>
NullIsTruePredicate.getInstance(Predicate<T> predicate)
          Factory to create the null true predicate.
static
<T> Predicate<T>
NullIsFalsePredicate.getInstance(Predicate<T> predicate)
          Factory to create the null false predicate.
static
<T> Predicate<T>
NullIsExceptionPredicate.getInstance(Predicate<T> predicate)
          Factory to create the null exception predicate.
static
<T> Predicate<T>
NotPredicate.getInstance(Predicate<T> predicate)
          Factory to create the not predicate.
static
<I,O> Predicate
TransformedPredicate.getInstance(Transformer<I,? extends O> transformer, Predicate<? super O> predicate)
          Factory to create the predicate.
 

Method parameters in org.apache.commons.collections.functors with type arguments of type Predicate
static
<T> Predicate<T>
OnePredicate.getInstance(Collection<Predicate<? super T>> predicates)
          Factory to create the predicate.
static
<T> Predicate<T>
NonePredicate.getInstance(Collection<Predicate<? super T>> predicates)
          Factory to create the predicate.
static
<T> Predicate<T>
AnyPredicate.getInstance(Collection<Predicate<? super T>> predicates)
          Factory to create the predicate.
static
<T> Predicate<T>
AllPredicate.getInstance(Collection<Predicate<? super T>> predicates)
          Factory to create the predicate.
static
<I,O> Transformer<I,O>
SwitchTransformer.getInstance(Map<Predicate<? super I>,Transformer<? super I,? extends O>> predicatesAndTransformers)
          Create a new Transformer that calls one of the transformers depending on the predicates.
static
<T> Closure<T>
SwitchClosure.getInstance(Map<Predicate<? super T>,Closure<? super T>> predicatesAndClosures)
          Create a new Closure that calls one of the closures depending on the predicates.
 

Constructors in org.apache.commons.collections.functors with parameters of type Predicate
AllPredicate(Predicate<? super T>[] predicates)
          Constructor that performs no validation.
AndPredicate(Predicate<? super T> predicate1, Predicate<? super T> predicate2)
          Constructor that performs no validation.
AndPredicate(Predicate<? super T> predicate1, Predicate<? super T> predicate2)
          Constructor that performs no validation.
AnyPredicate(Predicate<? super T>[] predicates)
          Constructor that performs no validation.
IfClosure(Predicate<? super T> predicate, Closure<? super T> trueClosure, Closure<? super T> falseClosure)
          Constructor that performs no validation.
NonePredicate(Predicate[] predicates)
          Constructor that performs no validation.
NotPredicate(Predicate<T> predicate)
          Constructor that performs no validation.
NullIsExceptionPredicate(Predicate<T> predicate)
          Constructor that performs no validation.
NullIsFalsePredicate(Predicate<T> predicate)
          Constructor that performs no validation.
NullIsTruePredicate(Predicate<T> predicate)
          Constructor that performs no validation.
OnePredicate(Predicate<? super T>[] predicates)
          Constructor that performs no validation.
OrPredicate(Predicate<? super T> predicate1, Predicate<? super T> predicate2)
          Constructor that performs no validation.
OrPredicate(Predicate<? super T> predicate1, Predicate<? super T> predicate2)
          Constructor that performs no validation.
PredicateTransformer(Predicate<T> predicate)
          Constructor that performs no validation.
SwitchClosure(Predicate<? super T>[] predicates, Closure<? super T>[] closures, Closure<? super T> defaultClosure)
          Constructor that performs no validation.
SwitchTransformer(Predicate<? super I>[] predicates, Transformer<? super I,? extends O>[] transformers, Transformer<? super I,? extends O> defaultTransformer)
          Constructor that performs no validation.
TransformedPredicate(Transformer<I,? extends O> transformer, Predicate<? super O> predicate)
          Constructor that performs no validation.
WhileClosure(Predicate<? super T> predicate, Closure<? super T> closure, boolean doLoop)
          Constructor that performs no validation.
 

Uses of Predicate in org.apache.commons.collections.iterators
 

Methods in org.apache.commons.collections.iterators that return Predicate
 Predicate<? super E> FilterListIterator.getPredicate()
          Gets the predicate this iterator is using.
 Predicate<? super E> FilterIterator.getPredicate()
          Gets the predicate this iterator is using.
 

Methods in org.apache.commons.collections.iterators with parameters of type Predicate
 void FilterListIterator.setPredicate(Predicate<? super E> predicate)
          Sets the predicate this the iterator to use.
 void FilterIterator.setPredicate(Predicate<? super E> predicate)
          Sets the predicate this the iterator to use.
 

Constructors in org.apache.commons.collections.iterators with parameters of type Predicate
FilterIterator(Iterator<E> iterator, Predicate<? super E> predicate)
          Constructs a new FilterIterator that will use the given iterator and predicate.
FilterListIterator(ListIterator<E> iterator, Predicate<? super E> predicate)
          Constructs a new FilterListIterator.
FilterListIterator(Predicate<? super E> predicate)
          Constructs a new FilterListIterator.
 

Uses of Predicate in org.apache.commons.collections.list
 

Methods in org.apache.commons.collections.list with parameters of type Predicate
static
<E> List<E>
PredicatedList.decorate(List<E> list, Predicate<? super E> predicate)
          Factory method to create a predicated (validating) list.
 

Constructors in org.apache.commons.collections.list with parameters of type Predicate
PredicatedList(List<E> list, Predicate<? super E> predicate)
          Constructor that wraps (not copies).
 

Uses of Predicate in org.apache.commons.collections.map
 

Fields in org.apache.commons.collections.map declared as Predicate
protected  Predicate<? super K> PredicatedMap.keyPredicate
          The key predicate to use
protected  Predicate<? super V> PredicatedMap.valuePredicate
          The value predicate to use
 

Methods in org.apache.commons.collections.map with parameters of type Predicate
static
<K,V> Map<K,V>
PredicatedMap.decorate(Map<K,V> map, Predicate<? super K> keyPredicate, Predicate<? super V> valuePredicate)
          Factory method to create a predicated (validating) map.
static
<K,V> Map<K,V>
PredicatedMap.decorate(Map<K,V> map, Predicate<? super K> keyPredicate, Predicate<? super V> valuePredicate)
          Factory method to create a predicated (validating) map.
static
<K,V> SortedMap<K,V>
PredicatedSortedMap.decorate(SortedMap<K,V> map, Predicate<? super K> keyPredicate, Predicate<? super V> valuePredicate)
          Factory method to create a predicated (validating) sorted map.
static
<K,V> SortedMap<K,V>
PredicatedSortedMap.decorate(SortedMap<K,V> map, Predicate<? super K> keyPredicate, Predicate<? super V> valuePredicate)
          Factory method to create a predicated (validating) sorted map.
 

Constructors in org.apache.commons.collections.map with parameters of type Predicate
PredicatedMap(Map<K,V> map, Predicate<? super K> keyPredicate, Predicate<? super V> valuePredicate)
          Constructor that wraps (not copies).
PredicatedMap(Map<K,V> map, Predicate<? super K> keyPredicate, Predicate<? super V> valuePredicate)
          Constructor that wraps (not copies).
PredicatedSortedMap(SortedMap<K,V> map, Predicate<? super K> keyPredicate, Predicate<? super V> valuePredicate)
          Constructor that wraps (not copies).
PredicatedSortedMap(SortedMap<K,V> map, Predicate<? super K> keyPredicate, Predicate<? super V> valuePredicate)
          Constructor that wraps (not copies).
 

Uses of Predicate in org.apache.commons.collections.set
 

Methods in org.apache.commons.collections.set with parameters of type Predicate
static
<E> Set<E>
PredicatedSet.decorate(Set<E> set, Predicate<? super E> predicate)
          Factory method to create a predicated (validating) set.
static
<E> SortedSet<E>
PredicatedSortedSet.decorate(SortedSet<E> set, Predicate<? super E> predicate)
          Factory method to create a predicated (validating) sorted set.
 

Constructors in org.apache.commons.collections.set with parameters of type Predicate
PredicatedSet(Set<E> set, Predicate<? super E> predicate)
          Constructor that wraps (not copies).
PredicatedSortedSet(SortedSet<E> set, Predicate<? super E> predicate)
          Constructor that wraps (not copies).
 



Copyright © 2005-2005 Apache Software Foundation, Matt Hall, John Watkinson. All Rights Reserved.