|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
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
|
PredicateUtils.allPredicate(Collection<Predicate<? super T>> predicates)
Create a new Predicate that returns true only if all of the specified predicates are true. |
|
static
|
PredicateUtils.allPredicate(Predicate<? super T>[] predicates)
Create a new Predicate that returns true only if all of the specified predicates are true. |
|
static
|
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
|
PredicateUtils.anyPredicate(Collection<Predicate<? super T>> predicates)
Create a new Predicate that returns true if any of the specified predicates are true. |
|
static
|
PredicateUtils.anyPredicate(Predicate<? super T>[] predicates)
Create a new Predicate that returns true if any of the specified predicates are true. |
|
static
|
PredicateUtils.asPredicate(Transformer<T,Boolean> transformer)
Create a new Predicate that wraps a Transformer. |
|
static
|
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
|
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
|
PredicateUtils.identityPredicate(T value)
Creates a Predicate that checks if the input object is equal to the specified object by identity. |
|
static
|
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
|
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
|
PredicateUtils.nonePredicate(Collection<Predicate<? super T>> predicates)
Create a new Predicate that returns true if none of the specified predicates are true. |
|
static
|
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
|
PredicateUtils.notPredicate(Predicate<T> predicate)
Create a new Predicate that returns true if the specified predicate returns false and vice versa. |
|
static
|
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
|
PredicateUtils.nullIsFalsePredicate(Predicate<T> predicate)
Gets a Predicate that returns false if the input object is null, otherwise it calls the specified Predicate. |
|
static
|
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
|
PredicateUtils.onePredicate(Collection<Predicate<? super T>> predicates)
Create a new Predicate that returns true if only one of the specified predicates are true. |
|
static
|
PredicateUtils.onePredicate(Predicate<? super T>[] predicates)
Create a new Predicate that returns true if only one of the specified predicates are true. |
|
static
|
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
|
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
|
PredicateUtils.allPredicate(Predicate<? super T>[] predicates)
Create a new Predicate that returns true only if all of the specified predicates are true. |
|
static
|
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
|
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
|
PredicateUtils.anyPredicate(Predicate<? super T>[] predicates)
Create a new Predicate that returns true if any of the specified predicates are true. |
|
static
|
TransformerUtils.asTransformer(Predicate<T> predicate)
Creates a Transformer that calls a Predicate each time the transformer is used. |
|
static
|
CollectionUtils.countMatches(Collection<E> inputCollection,
Predicate<E> predicate)
Counts the number of elements in the input collection that match the predicate. |
|
static
|
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
|
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
|
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
|
CollectionUtils.exists(Collection<E> collection,
Predicate<E> predicate)
Answers true if a predicate is true for at least one element of a collection. |
|
static
|
CollectionUtils.filter(Collection<E> collection,
Predicate<E> predicate)
Filter the collection by applying a Predicate to each element. |
|
static
|
IteratorUtils.filteredIterator(Iterator<E> iterator,
Predicate<? super E> predicate)
Gets an iterator that filters another iterator. |
|
static
|
IteratorUtils.filteredListIterator(ListIterator<E> listIterator,
Predicate<? super E> predicate)
Gets a list iterator that filters another list iterator. |
|
static
|
CollectionUtils.find(Collection<E> collection,
Predicate<E> predicate)
Finds the first element in the given collection which matches the given predicate. |
|
static
|
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
|
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
|
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
|
PredicateUtils.nonePredicate(Predicate<? super T>[] predicates)
Create a new Predicate that returns true if none of the specified predicates are true. |
|
static
|
PredicateUtils.notPredicate(Predicate<T> predicate)
Create a new Predicate that returns true if the specified predicate returns false and vice versa. |
|
static
|
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
|
PredicateUtils.nullIsFalsePredicate(Predicate<T> predicate)
Gets a Predicate that returns false if the input object is null, otherwise it calls the specified Predicate. |
|
static
|
PredicateUtils.nullIsTruePredicate(Predicate<T> predicate)
Gets a Predicate that returns true if the input object is null, otherwise it calls the specified Predicate. |
|
static
|
PredicateUtils.onePredicate(Predicate<? super T>[] predicates)
Create a new Predicate that returns true if only one of the specified predicates are true. |
|
static
|
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
|
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
|
BagUtils.predicatedBag(Bag<E> bag,
Predicate<? super E> predicate)
Returns a predicated (validating) bag backed by the given bag. |
|
static
|
BufferUtils.predicatedBuffer(Buffer<E> buffer,
Predicate<E> predicate)
Returns a predicated (validating) buffer backed by the given buffer. |
|
static
|
CollectionUtils.predicatedCollection(Collection<E> collection,
Predicate<E> predicate)
Returns a predicated (validating) collection backed by the given collection. |
|
static
|
ListUtils.predicatedList(List<E> list,
Predicate<? super E> predicate)
Returns a predicated (validating) list backed by the given list. |
|
static
|
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
|
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
|
SetUtils.predicatedSet(Set<E> set,
Predicate<? super E> predicate)
Returns a predicated (validating) set backed by the given set. |
|
static
|
BagUtils.predicatedSortedBag(SortedBag<E> bag,
Predicate<? super E> predicate)
Returns a predicated (validating) sorted bag backed by the given sorted bag. |
|
static
|
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
|
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
|
SetUtils.predicatedSortedSet(SortedSet<E> set,
Predicate<? super E> predicate)
Returns a predicated (validating) sorted set backed by the given sorted set. |
|
static
|
CollectionUtils.select(Collection<E> inputCollection,
Predicate<E> predicate)
Selects all elements from input collection which match the given predicate into an output collection. |
|
static
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
PredicateUtils.allPredicate(Collection<Predicate<? super T>> predicates)
Create a new Predicate that returns true only if all of the specified predicates are true. |
|
static
|
PredicateUtils.anyPredicate(Collection<Predicate<? super T>> predicates)
Create a new Predicate that returns true if any of the specified predicates are true. |
|
static
|
PredicateUtils.nonePredicate(Collection<Predicate<? super T>> predicates)
Create a new Predicate that returns true if none of the specified predicates are true. |
|
static
|
PredicateUtils.onePredicate(Collection<Predicate<? super T>> predicates)
Create a new Predicate that returns true if only one of the specified predicates are true. |
|
static
|
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
|
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
|
PredicatedBag.decorate(Bag<E> bag,
Predicate<? super E> predicate)
Factory method to create a predicated (validating) bag. |
|
static
|
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
|
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
|
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
|
UniquePredicate.getInstance()
Factory to create the predicate. |
|
static
|
InstanceofPredicate.getInstance(Class<T> type)
Factory to create the identity predicate. |
|
static
|
OnePredicate.getInstance(Collection<Predicate<? super T>> predicates)
Factory to create the predicate. |
|
static
|
NonePredicate.getInstance(Collection<Predicate<? super T>> predicates)
Factory to create the predicate. |
|
static
|
AnyPredicate.getInstance(Collection<Predicate<? super T>> predicates)
Factory to create the predicate. |
|
static
|
AllPredicate.getInstance(Collection<Predicate<? super T>> predicates)
Factory to create the predicate. |
|
static
|
OnePredicate.getInstance(Predicate<? super T>[] predicates)
Factory to create the predicate. |
|
static
|
NonePredicate.getInstance(Predicate<? super T>[] predicates)
Factory to create the predicate. |
|
static
|
AnyPredicate.getInstance(Predicate<? super T>[] predicates)
Factory to create the predicate. |
|
static
|
AllPredicate.getInstance(Predicate<? super T>[] predicates)
Factory to create the predicate. |
|
static
|
OrPredicate.getInstance(Predicate<? super T> predicate1,
Predicate<? super T> predicate2)
Factory to create the predicate. |
|
static
|
AndPredicate.getInstance(Predicate<? super T> predicate1,
Predicate<? super T> predicate2)
Factory to create the predicate. |
|
static
|
NullIsTruePredicate.getInstance(Predicate<T> predicate)
Factory to create the null true predicate. |
|
static
|
NullIsFalsePredicate.getInstance(Predicate<T> predicate)
Factory to create the null false predicate. |
|
static
|
NullIsExceptionPredicate.getInstance(Predicate<T> predicate)
Factory to create the null exception predicate. |
|
static
|
NotPredicate.getInstance(Predicate<T> predicate)
Factory to create the not predicate. |
|
static
|
IdentityPredicate.getInstance(T object)
Factory to create the identity predicate. |
|
static
|
EqualPredicate.getInstance(T object)
Factory to create the identity predicate. |
|
static
|
TransformedPredicate.getInstance(Transformer<I,? extends O> transformer,
Predicate<? super O> predicate)
Factory to create the predicate. |
|
static
|
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
|
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
|
OnePredicate.getInstance(Predicate<? super T>[] predicates)
Factory to create the predicate. |
|
static
|
NonePredicate.getInstance(Predicate<? super T>[] predicates)
Factory to create the predicate. |
|
static
|
AnyPredicate.getInstance(Predicate<? super T>[] predicates)
Factory to create the predicate. |
|
static
|
AllPredicate.getInstance(Predicate<? super T>[] predicates)
Factory to create the predicate. |
|
static
|
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
|
WhileClosure.getInstance(Predicate<? super T> predicate,
Closure<? super T> closure,
boolean doLoop)
Factory method that performs validation. |
|
static
|
IfClosure.getInstance(Predicate<? super T> predicate,
Closure<? super T> trueClosure,
Closure<? super T> falseClosure)
Factory method that performs validation. |
|
static
|
OrPredicate.getInstance(Predicate<? super T> predicate1,
Predicate<? super T> predicate2)
Factory to create the predicate. |
|
static
|
OrPredicate.getInstance(Predicate<? super T> predicate1,
Predicate<? super T> predicate2)
Factory to create the predicate. |
|
static
|
AndPredicate.getInstance(Predicate<? super T> predicate1,
Predicate<? super T> predicate2)
Factory to create the predicate. |
|
static
|
AndPredicate.getInstance(Predicate<? super T> predicate1,
Predicate<? super T> predicate2)
Factory to create the predicate. |
|
static
|
PredicateTransformer.getInstance(Predicate<T> predicate)
Factory method that performs validation. |
|
static
|
NullIsTruePredicate.getInstance(Predicate<T> predicate)
Factory to create the null true predicate. |
|
static
|
NullIsFalsePredicate.getInstance(Predicate<T> predicate)
Factory to create the null false predicate. |
|
static
|
NullIsExceptionPredicate.getInstance(Predicate<T> predicate)
Factory to create the null exception predicate. |
|
static
|
NotPredicate.getInstance(Predicate<T> predicate)
Factory to create the not predicate. |
|
static
|
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
|
OnePredicate.getInstance(Collection<Predicate<? super T>> predicates)
Factory to create the predicate. |
|
static
|
NonePredicate.getInstance(Collection<Predicate<? super T>> predicates)
Factory to create the predicate. |
|
static
|
AnyPredicate.getInstance(Collection<Predicate<? super T>> predicates)
Factory to create the predicate. |
|
static
|
AllPredicate.getInstance(Collection<Predicate<? super T>> predicates)
Factory to create the predicate. |
|
static
|
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
|
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
|
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
|
PredicatedMap.decorate(Map<K,V> map,
Predicate<? super K> keyPredicate,
Predicate<? super V> valuePredicate)
Factory method to create a predicated (validating) map. |
|
static
|
PredicatedMap.decorate(Map<K,V> map,
Predicate<? super K> keyPredicate,
Predicate<? super V> valuePredicate)
Factory method to create a predicated (validating) map. |
|
static
|
PredicatedSortedMap.decorate(SortedMap<K,V> map,
Predicate<? super K> keyPredicate,
Predicate<? super V> valuePredicate)
Factory method to create a predicated (validating) sorted map. |
|
static
|
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
|
PredicatedSet.decorate(Set<E> set,
Predicate<? super E> predicate)
Factory method to create a predicated (validating) set. |
|
static
|
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). |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |