| Package | Description |
|---|---|
| org.apache.commons.collections4 |
This package contains the interfaces and utilities shared across all the subpackages of this component.
|
| org.apache.commons.collections4.bag | |
| org.apache.commons.collections4.collection |
This package contains implementations of the
Collection interface.
|
| org.apache.commons.collections4.functors |
This package contains implementations of the
Closure,
Predicate,
Transformer and
Factory interfaces.
|
| org.apache.commons.collections4.iterators |
This package contains implementations of the
Iterator interface.
|
| org.apache.commons.collections4.list |
This package contains implementations of the
List interface.
|
| org.apache.commons.collections4.map | |
| org.apache.commons.collections4.multiset |
This package contains implementations of the
MultiSet and
SortedMultiSet interfaces.
|
| org.apache.commons.collections4.queue |
This package contains implementations for the
Queue interface.
|
| org.apache.commons.collections4.set |
| Modifier and Type | Method and Description |
|---|---|
static <T> Predicate |
PredicateUtils.allPredicate(Collection
Create a new Predicate that returns true only if all of the specified predicates are true.
|
static <T> Predicate |
PredicateUtils.allPredicate(Predicate
Create a new Predicate that returns true only if all of the specified predicates are true.
|
static <T> Predicate |
PredicateUtils.andPredicate(Predicate
Create a new Predicate that returns true only if both of the specified predicates are true.
|
static <T> Predicate |
PredicateUtils.anyPredicate(Collection
Create a new Predicate that returns true if any of the specified predicates are true.
|
static <T> Predicate |
PredicateUtils.anyPredicate(Predicate
Create a new Predicate that returns true if any of the specified predicates are true.
|
static <T> Predicate |
PredicateUtils.asPredicate(Transformer
Create a new Predicate that wraps a Transformer.
|
static <T> Predicate |
PredicateUtils.eitherPredicate(Predicate
Create a new Predicate that returns true if one, but not both, of the specified predicates are true.
|
static <T> Predicate |
PredicateUtils.equalPredicate(T value)
Creates a Predicate that checks if the input object is equal to the specified object using equals().
|
static <T> Predicate |
PredicateUtils.exceptionPredicate()
Gets a Predicate that always throws an exception.
|
static <T> Predicate |
PredicateUtils.falsePredicate()
Gets a Predicate that always returns false.
|
static <T> Predicate |
PredicateUtils.identityPredicate(T value)
Creates a Predicate that checks if the input object is equal to the specified object by identity.
|
static Predicate |
PredicateUtils.instanceofPredicate(Class
Creates a Predicate that checks if the object passed in is of a particular type, using instanceof.
|
static <T> Predicate |
PredicateUtils.invokerPredicate(String
Creates a Predicate that invokes a method on the input object.
|
static <T> Predicate |
PredicateUtils.invokerPredicate(String
Creates a Predicate that invokes a method on the input object.
|
static <T> Predicate |
PredicateUtils.neitherPredicate(Predicate
Create a new Predicate that returns true if neither of the specified predicates are true.
|
static <T> Predicate |
PredicateUtils.nonePredicate(Collection
Create a new Predicate that returns true if none of the specified predicates are true.
|
static <T> Predicate |
PredicateUtils.nonePredicate(Predicate
Create a new Predicate that returns true if none of the specified predicates are true.
|
static <T> Predicate |
PredicateUtils.notNullPredicate()
Gets a Predicate that checks if the input object passed in is not null.
|
static <T> Predicate |
PredicateUtils.notPredicate(Predicate
Create a new Predicate that returns true if the specified predicate returns false and vice versa.
|
static <T> Predicate |
PredicateUtils.nullIsExceptionPredicate(Predicate
Gets a Predicate that throws an exception if the input object is null, otherwise it calls the specified Predicate.
|
static <T> Predicate |
PredicateUtils.nullIsFalsePredicate(Predicate
Gets a Predicate that returns false if the input object is null, otherwise it calls the specified Predicate.
|
static <T> Predicate |
PredicateUtils.nullIsTruePredicate(Predicate
Gets a Predicate that returns true if the input object is null, otherwise it calls the specified Predicate.
|
static <T> Predicate |
PredicateUtils.nullPredicate()
Gets a Predicate that checks if the input object passed in is null.
|
static <T> Predicate |
PredicateUtils.onePredicate(Collection
Create a new Predicate that returns true if only one of the specified predicates are true.
|
static <T> Predicate |
PredicateUtils.onePredicate(Predicate
Create a new Predicate that returns true if only one of the specified predicates are true.
|
static <T> Predicate |
PredicateUtils.orPredicate(Predicate
Create a new Predicate that returns true if either of the specified predicates are true.
|
static <T> Predicate |
PredicateUtils.transformedPredicate(Transformer
Creates a predicate that transforms the input object before passing it to the predicate.
|
static <T> Predicate |
PredicateUtils.truePredicate()
Gets a Predicate that always returns true.
|
static <T> 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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
FluentIterable.allMatch(Predicate
Checks if all elements contained in this iterable are matching the provided predicate.
|
static <T> Predicate |
PredicateUtils.allPredicate(Predicate
Create a new Predicate that returns true only if all of the specified predicates are true.
|
static <T> Predicate |
PredicateUtils.andPredicate(Predicate
Create a new Predicate that returns true only if both of the specified predicates are true.
|
static <T> Predicate |
PredicateUtils.andPredicate(Predicate
Create a new Predicate that returns true only if both of the specified predicates are true.
|
boolean |
FluentIterable.anyMatch(Predicate
Checks if this iterable contains any element matching the provided predicate.
|
static <T> Predicate |
PredicateUtils.anyPredicate(Predicate
Create a new Predicate that returns true if any of the specified predicates are true.
|
static <T> Transformer |
TransformerUtils.asTransformer(Predicate
Creates a Transformer that calls a Predicate each time the transformer is used.
|
static <C> int |
CollectionUtils.countMatches(Iterable
Deprecated.
since 4.1, use
IterableUtils instead
|
static <E> long |
IterableUtils.countMatches(Iterable
Counts the number of elements in the input iterable that match the predicate.
|
static <E> Closure |
ClosureUtils.doWhileClosure(Closure
Creates a Closure that will call the closure once and then repeatedly until the predicate returns false.
|
static <T> Predicate |
PredicateUtils.eitherPredicate(Predicate
Create a new Predicate that returns true if one, but not both, of the specified predicates are true.
|
static <T> Predicate |
PredicateUtils.eitherPredicate(Predicate
Create a new Predicate that returns true if one, but not both, of the specified predicates are true.
|
static <C> boolean |
CollectionUtils.exists(Iterable
Deprecated.
since 4.1, use
IterableUtils instead
|
static <T> boolean |
CollectionUtils.filter(Iterable
Filter the collection by applying a Predicate to each element.
|
FluentIterable |
FluentIterable.filter(Predicate
Returns a new FluentIterable whose iterator will only return elements from this iterable matching the provided predicate.
|
static <E> Iterable |
IterableUtils.filteredIterable(Iterable
Returns a view of the given iterable that only contains elements matching the provided predicate.
|
static <E> Iterator |
IteratorUtils.filteredIterator(Iterator
Gets an iterator that filters another iterator.
|
static <E> ListIterator |
IteratorUtils.filteredListIterator(ListIterator
Gets a list iterator that filters another list iterator.
|
static <T> boolean |
CollectionUtils.filterInverse(Iterable
Filter the collection by applying a Predicate to each element.
|
static <E> E |
IterableUtils.find(Iterable
Finds the first element in the given iterable which matches the given predicate.
|
static <T> T |
CollectionUtils.find(Iterable
Deprecated.
since 4.1, use
IterableUtils instead
|
static <E> E |
IteratorUtils.find(Iterator
Finds the first element in the given iterator which matches the given predicate.
|
static <E> Closure |
ClosureUtils.ifClosure(Predicate
Create a new Closure that calls another closure based on the result of the specified predicate.
|
static <E> Closure |
ClosureUtils.ifClosure(Predicate
Create a new Closure that calls one of two closures depending on the specified predicate.
|
static <I |
TransformerUtils.ifTransformer(Predicate
Create a new Transformer that calls one of two transformers depending on the specified predicate.
|
static <T> Transformer |
TransformerUtils.ifTransformer(Predicate
Create a new Transformer that calls the transformer if the predicate is true, otherwise the input object is returned unchanged.
|
static <E> int |
IterableUtils.indexOf(Iterable
Returns the index of the first element in the specified iterable that matches the given predicate.
|
static <E> int |
IteratorUtils.indexOf(Iterator
Returns the index of the first element in the specified iterator that matches the given predicate.
|
static <E> int |
ListUtils.indexOf(List
Finds the first index in the given List which matches the given predicate.
|
static <C> boolean |
CollectionUtils.matchesAll(Iterable
Deprecated.
since 4.1, use
IterableUtils instead
|
static <E> boolean |
IterableUtils.matchesAll(Iterable
Answers true if a predicate is true for every element of an iterable.
|
static <E> boolean |
IteratorUtils.matchesAll(Iterator
Answers true if a predicate is true for every element of an iterator.
|
static <E> boolean |
IterableUtils.matchesAny(Iterable
Answers true if a predicate is true for any element of the iterable.
|
static <E> boolean |
IteratorUtils.matchesAny(Iterator
Answers true if a predicate is true for any element of the iterator.
|
static <T> Predicate |
PredicateUtils.neitherPredicate(Predicate
Create a new Predicate that returns true if neither of the specified predicates are true.
|
static <T> Predicate |
PredicateUtils.neitherPredicate(Predicate
Create a new Predicate that returns true if neither of the specified predicates are true.
|
static <T> Predicate |
PredicateUtils.nonePredicate(Predicate
Create a new Predicate that returns true if none of the specified predicates are true.
|
static <T> Predicate |
PredicateUtils.notPredicate(Predicate
Create a new Predicate that returns true if the specified predicate returns false and vice versa.
|
static <T> Predicate |
PredicateUtils.nullIsExceptionPredicate(Predicate
Gets a Predicate that throws an exception if the input object is null, otherwise it calls the specified Predicate.
|
static <T> Predicate |
PredicateUtils.nullIsFalsePredicate(Predicate
Gets a Predicate that returns false if the input object is null, otherwise it calls the specified Predicate.
|
static <T> Predicate |
PredicateUtils.nullIsTruePredicate(Predicate
Gets a Predicate that returns true if the input object is null, otherwise it calls the specified Predicate.
|
static <T> Predicate |
PredicateUtils.onePredicate(Predicate
Create a new Predicate that returns true if only one of the specified predicates are true.
|
static <T> Predicate |
PredicateUtils.orPredicate(Predicate
Create a new Predicate that returns true if either of the specified predicates are true.
|
static <T> Predicate |
PredicateUtils.orPredicate(Predicate
Create a new Predicate that returns true if either of the specified predicates are true.
|
static <O |
IterableUtils.partition(Iterable
Partitions all elements from iterable into separate output collections, based on the evaluation of the given predicates.
|
static <O> List |
IterableUtils.partition(Iterable
Partitions all elements from iterable into separate output collections, based on the evaluation of the given predicates.
|
static <O> List |
IterableUtils.partition(Iterable
Partitions all elements from iterable into separate output collections, based on the evaluation of the given predicate.
|
static <E> Bag |
BagUtils.predicatedBag(Bag
Returns a predicated (validating) bag backed by the given bag.
|
static <C> Collection |
CollectionUtils.predicatedCollection(Collection
Returns a predicated (validating) collection backed by the given collection.
|
static <E> List |
ListUtils.predicatedList(List
Returns a predicated (validating) list backed by the given list.
|
static <K |
MapUtils.predicatedMap(Map
Returns a predicated (validating) map backed by the given map.
|
static <K |
MapUtils.predicatedMap(Map
Returns a predicated (validating) map backed by the given map.
|
static <E> MultiSet |
MultiSetUtils.predicatedMultiSet(MultiSet
Returns a predicated (validating) multiset backed by the given multiset.
|
static <E> SortedSet |
SetUtils.predicatedNavigableSet(NavigableSet
Returns a predicated (validating) navigable set backed by the given navigable set.
|
static <E> Queue |
QueueUtils.predicatedQueue(Queue
Returns a predicated (validating) queue backed by the given queue.
|
static <E> Set |
SetUtils.predicatedSet(Set
Returns a predicated (validating) set backed by the given set.
|
static <E> SortedBag |
BagUtils.predicatedSortedBag(SortedBag
Returns a predicated (validating) sorted bag backed by the given sorted bag.
|
static <K |
MapUtils.predicatedSortedMap(SortedMap
Returns a predicated (validating) sorted map backed by the given map.
|
static <K |
MapUtils.predicatedSortedMap(SortedMap
Returns a predicated (validating) sorted map backed by the given map.
|
static <E> SortedSet |
SetUtils.predicatedSortedSet(SortedSet
Returns a predicated (validating) sorted set backed by the given sorted set.
|
static <E> List |
ListUtils.select(Collection
Selects all elements from input collection which match the given predicate into an output list.
|
static <O> Collection |
CollectionUtils.select(Iterable
Selects all elements from input collection which match the given predicate into an output collection.
|
static <O |
CollectionUtils.select(Iterable
Selects all elements from input collection which match the given predicate and adds them to outputCollection.
|
static <O |
CollectionUtils.select(Iterable
Selects all elements from inputCollection into an output and rejected collection, based on the evaluation of the given predicate.
|
static <E> List |
ListUtils.selectRejected(Collection
Selects all elements from inputCollection which don't match the given predicate into an output collection.
|
static <O> Collection |
CollectionUtils.selectRejected(Iterable
Selects all elements from inputCollection which don't match the given predicate into an output collection.
|
static <O |
CollectionUtils.selectRejected(Iterable
Selects all elements from inputCollection which don't match the given predicate and adds them to outputCollection.
|
static <O> Collection |
CollectionUtils.subtract(Iterable
Returns a new
Collection containing
a minus a subset of
b.
|
static <E> Closure |
ClosureUtils.switchClosure(Predicate
Create a new Closure that calls one of the closures depending on the predicates.
|
static <E> Closure |
ClosureUtils.switchClosure(Predicate
Create a new Closure that calls one of the closures depending on the predicates.
|
static <I |
TransformerUtils.switchTransformer(Predicate
Create a new Transformer that calls one of the transformers depending on the predicates.
|
static <I |
TransformerUtils.switchTransformer(Predicate
Create a new Transformer that calls one of the transformers depending on the predicates.
|
static <I |
TransformerUtils.switchTransformer(Predicate
Deprecated.
as of 4.1, use {@link #ifTransformer(Predicate, Transformer, Transformer))
|
static <T> Predicate |
PredicateUtils.transformedPredicate(Transformer
Creates a predicate that transforms the input object before passing it to the predicate.
|
static <E> Closure |
ClosureUtils.whileClosure(Predicate
Creates a Closure that will call the closure repeatedly until the predicate returns false.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Predicate |
PredicateUtils.allPredicate(Collection
Create a new Predicate that returns true only if all of the specified predicates are true.
|
static <T> Predicate |
PredicateUtils.anyPredicate(Collection
Create a new Predicate that returns true if any of the specified predicates are true.
|
static <T> Predicate |
PredicateUtils.nonePredicate(Collection
Create a new Predicate that returns true if none of the specified predicates are true.
|
static <T> Predicate |
PredicateUtils.onePredicate(Collection
Create a new Predicate that returns true if only one of the specified predicates are true.
|
static <E> Closure |
ClosureUtils.switchClosure(Map
Create a new Closure that calls one of the closures depending on the predicates.
|
static <I |
TransformerUtils.switchTransformer(Map
Create a new Transformer that calls one of the transformers depending on the predicates.
|
| Modifier and Type | Method and Description |
|---|---|
static <E> PredicatedBag |
PredicatedBag.predicatedBag(Bag
Factory method to create a predicated (validating) bag.
|
static <E> PredicatedSortedBag |
PredicatedSortedBag.predicatedSortedBag(SortedBag
Factory method to create a predicated (validating) bag.
|
| Constructor and Description | |
|---|---|
PredicatedBag(Bag
Constructor that wraps (not copies).
|
|
PredicatedSortedBag(SortedBag
Constructor that wraps (not copies).
|
| Modifier and Type | Field and Description |
|---|---|
protected Predicate |
PredicatedCollection.predicate
The predicate to use
|
| Modifier and Type | Method and Description |
|---|---|
static <E> PredicatedCollection |
PredicatedCollection.builder(Predicate
Returns a Builder with the given predicate.
|
static <T> PredicatedCollection |
PredicatedCollection.predicatedCollection(Collection
Factory method to create a predicated (validating) collection.
|
| Constructor and Description | |
|---|---|
Builder(Predicate
Constructs a PredicatedCollectionBuilder with the specified Predicate.
|
|
PredicatedCollection(Collection
Constructor that wraps (not copies).
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
PredicateDecorator<T>
Defines a predicate that decorates one or more other predicates.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractQuantifierPredicate<T>
Abstract base class for quantification predicates, e.g.
|
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 |
ComparatorPredicate<T>
Predicate that compares the input object with the one stored in the predicate using a comparator.
|
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
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<T>
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.
|
| Modifier and Type | Field and Description |
|---|---|
static Predicate |
FalsePredicate.INSTANCE
Singleton predicate instance
|
static Predicate |
NullPredicate.INSTANCE
Singleton predicate instance
|
static Predicate |
NotNullPredicate.INSTANCE
Singleton predicate instance
|
static Predicate |
ExceptionPredicate.INSTANCE
Singleton predicate instance
|
static Predicate |
TruePredicate.INSTANCE
Singleton predicate instance
|
protected Predicate |
AbstractQuantifierPredicate.iPredicates
The array of predicates to call
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Predicate |
AllPredicate.allPredicate(Collection
Factory to create the predicate.
|
static <T> Predicate |
AllPredicate.allPredicate(Predicate
Factory to create the predicate.
|
static <T> Predicate |
AndPredicate.andPredicate(Predicate
Factory to create the predicate.
|
static <T> Predicate |
AnyPredicate.anyPredicate(Collection
Factory to create the predicate.
|
static <T> Predicate |
AnyPredicate.anyPredicate(Predicate
Factory to create the predicate.
|
static <T> Predicate |
ComparatorPredicate.comparatorPredicate(T object, Comparator
Factory to create the comparator predicate
|
static <T> Predicate |
ComparatorPredicate.comparatorPredicate(T object, Comparator
Factory to create the comparator predicate
|
static <T> Predicate |
EqualPredicate.equalPredicate(T object)
Factory to create the predicate.
|
static <T> Predicate |
EqualPredicate.equalPredicate(T object, Equator
Factory to create the identity predicate.
|
static <T> Predicate |
ExceptionPredicate.exceptionPredicate()
Factory returning the singleton instance.
|
static <T> Predicate |
FalsePredicate.falsePredicate()
Get a typed instance.
|
Predicate |
WhileClosure.getPredicate()
Gets the predicate in use.
|
Predicate |
PredicateTransformer.getPredicate()
Gets the predicate.
|
Predicate |
IfClosure.getPredicate()
Gets the predicate.
|
Predicate |
IfTransformer.getPredicate()
Gets the predicate.
|
Predicate |
NullIsFalsePredicate.getPredicates()
Gets the predicate being decorated.
|
Predicate |
PredicateDecorator.getPredicates()
Gets the predicates being decorated as an array.
|
Predicate |
OrPredicate.getPredicates()
Gets the two predicates being decorated as an array.
|
Predicate |
SwitchClosure.getPredicates()
Gets the predicates.
|
Predicate |
NotPredicate.getPredicates()
Gets the predicate being decorated.
|
Predicate |
SwitchTransformer.getPredicates()
Gets the predicates.
|
Predicate |
AbstractQuantifierPredicate.getPredicates()
Gets the predicates.
|
Predicate |
NullIsTruePredicate.getPredicates()
Gets the predicate being decorated.
|
Predicate |
AndPredicate.getPredicates()
Gets the two predicates being decorated as an array.
|
Predicate |
TransformedPredicate.getPredicates()
Gets the predicate being decorated.
|
Predicate |
NullIsExceptionPredicate.getPredicates()
Gets the predicate being decorated.
|
static <T> Predicate |
IdentityPredicate.identityPredicate(T object)
Factory to create the identity predicate.
|
static Predicate |
InstanceofPredicate.instanceOfPredicate(Class
Factory to create the identity predicate.
|
static <T> Predicate |
NonePredicate.nonePredicate(Collection
Factory to create the predicate.
|
static <T> Predicate |
NonePredicate.nonePredicate(Predicate
Factory to create the predicate.
|
static <T> Predicate |
NotNullPredicate.notNullPredicate()
Factory returning the singleton instance.
|
static <T> Predicate |
NotPredicate.notPredicate(Predicate
Factory to create the not predicate.
|
static <T> Predicate |
NullIsExceptionPredicate.nullIsExceptionPredicate(Predicate
Factory to create the null exception predicate.
|
static <T> Predicate |
NullIsFalsePredicate.nullIsFalsePredicate(Predicate
Factory to create the null false predicate.
|
static <T> Predicate |
NullIsTruePredicate.nullIsTruePredicate(Predicate
Factory to create the null true predicate.
|
static <T> Predicate |
NullPredicate.nullPredicate()
Factory returning the singleton instance.
|
static <T> Predicate |
OnePredicate.onePredicate(Collection
Factory to create the predicate.
|
static <T> Predicate |
OnePredicate.onePredicate(Predicate
Factory to create the predicate.
|
static <T> Predicate |
OrPredicate.orPredicate(Predicate
Factory to create the predicate.
|
static <T> Predicate |
TransformedPredicate.transformedPredicate(Transformer
Factory to create the predicate.
|
static <T> Predicate |
TransformerPredicate.transformerPredicate(Transformer
Factory to create the predicate.
|
static <T> Predicate |
TruePredicate.truePredicate()
Factory returning the singleton instance.
|
static <T> Predicate |
UniquePredicate.uniquePredicate()
Factory to create the predicate.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Predicate |
AllPredicate.allPredicate(Predicate
Factory to create the predicate.
|
static <T> Predicate |
AndPredicate.andPredicate(Predicate
Factory to create the predicate.
|
static <T> Predicate |
AndPredicate.andPredicate(Predicate
Factory to create the predicate.
|
static <T> Predicate |
AnyPredicate.anyPredicate(Predicate
Factory to create the predicate.
|
static <E> Closure |
IfClosure.ifClosure(Predicate
Factory method that performs validation.
|
static <E> Closure |
IfClosure.ifClosure(Predicate
Factory method that performs validation.
|
static <I |
IfTransformer.ifTransformer(Predicate
Factory method that performs validation.
|
static <T> Transformer |
IfTransformer.ifTransformer(Predicate
Factory method that performs validation.
|
static <T> Predicate |
NonePredicate.nonePredicate(Predicate
Factory to create the predicate.
|
static <T> Predicate |
NotPredicate.notPredicate(Predicate
Factory to create the not predicate.
|
static <T> Predicate |
NullIsExceptionPredicate.nullIsExceptionPredicate(Predicate
Factory to create the null exception predicate.
|
static <T> Predicate |
NullIsFalsePredicate.nullIsFalsePredicate(Predicate
Factory to create the null false predicate.
|
static <T> Predicate |
NullIsTruePredicate.nullIsTruePredicate(Predicate
Factory to create the null true predicate.
|
static <T> Predicate |
OnePredicate.onePredicate(Predicate
Factory to create the predicate.
|
static <T> Predicate |
OrPredicate.orPredicate(Predicate
Factory to create the predicate.
|
static <T> Predicate |
OrPredicate.orPredicate(Predicate
Factory to create the predicate.
|
static <T> Transformer |
PredicateTransformer.predicateTransformer(Predicate
Factory method that performs validation.
|
static <E> Closure |
SwitchClosure.switchClosure(Predicate
Factory method that performs validation and copies the parameter arrays.
|
static <I |
SwitchTransformer.switchTransformer(Predicate
Factory method that performs validation and copies the parameter arrays.
|
static <T> Predicate |
TransformedPredicate.transformedPredicate(Transformer
Factory to create the predicate.
|
static <E> Closure |
WhileClosure.whileClosure(Predicate
Factory method that performs validation.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Predicate |
AllPredicate.allPredicate(Collection
Factory to create the predicate.
|
static <T> Predicate |
AnyPredicate.anyPredicate(Collection
Factory to create the predicate.
|
static <T> Predicate |
NonePredicate.nonePredicate(Collection
Factory to create the predicate.
|
static <T> Predicate |
OnePredicate.onePredicate(Collection
Factory to create the predicate.
|
static <E> Closure |
SwitchClosure.switchClosure(Map
Create a new Closure that calls one of the closures depending on the predicates.
|
static <I |
SwitchTransformer.switchTransformer(Map
Create a new Transformer that calls one of the transformers depending on the predicates.
|
| Constructor and Description | |
|---|---|
AbstractQuantifierPredicate(Predicate
Constructor that performs no validation.
|
|
AllPredicate(Predicate
Constructor that performs no validation.
|
|
AndPredicate(Predicate
Constructor that performs no validation.
|
|
AndPredicate(Predicate
Constructor that performs no validation.
|
|
AnyPredicate(Predicate
Constructor that performs no validation.
|
|
IfClosure(Predicate
Constructor that performs no validation.
|
|
IfClosure(Predicate
Constructor that performs no validation.
|
|
IfTransformer(Predicate
Constructor that performs no validation.
|
|
NonePredicate(Predicate
Constructor that performs no validation.
|
|
NotPredicate(Predicate
Constructor that performs no validation.
|
|
NullIsExceptionPredicate(Predicate
Constructor that performs no validation.
|
|
NullIsFalsePredicate(Predicate
Constructor that performs no validation.
|
|
NullIsTruePredicate(Predicate
Constructor that performs no validation.
|
|
OnePredicate(Predicate
Constructor that performs no validation.
|
|
OrPredicate(Predicate
Constructor that performs no validation.
|
|
OrPredicate(Predicate
Constructor that performs no validation.
|
|
PredicateTransformer(Predicate
Constructor that performs no validation.
|
|
SwitchClosure(Predicate
Constructor that performs no validation.
|
|
SwitchTransformer(Predicate
Constructor that performs no validation.
|
|
TransformedPredicate(Transformer
Constructor that performs no validation.
|
|
WhileClosure(Predicate
Constructor that performs no validation.
|
| Modifier and Type | Method and Description |
|---|---|
Predicate |
FilterIterator.getPredicate()
Gets the predicate this iterator is using.
|
Predicate |
FilterListIterator.getPredicate()
Gets the predicate this iterator is using.
|
| Modifier and Type | Method and Description |
|---|---|
void |
FilterIterator.setPredicate(Predicate
Sets the predicate this the iterator to use.
|
void |
FilterListIterator.setPredicate(Predicate
Sets the predicate this the iterator to use.
|
| Constructor and Description | |
|---|---|
FilterIterator(Iterator
Constructs a new
FilterIterator that will use the given iterator and predicate.
|
|
FilterListIterator(ListIterator
Constructs a new
FilterListIterator.
|
|
FilterListIterator(Predicate
Constructs a new
FilterListIterator that will not function until
setListIterator is invoked.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> PredicatedList |
PredicatedList.predicatedList(List
Factory method to create a predicated (validating) list.
|
| Constructor and Description | |
|---|---|
PredicatedList(List
Constructor that wraps (not copies).
|
| Modifier and Type | Field and Description |
|---|---|
protected Predicate |
PredicatedMap.keyPredicate
The key predicate to use
|
protected Predicate |
PredicatedMap.valuePredicate
The value predicate to use
|
| Modifier and Type | Method and Description |
|---|---|
static <K |
PredicatedMap.predicatedMap(Map
Factory method to create a predicated (validating) map.
|
static <K |
PredicatedMap.predicatedMap(Map
Factory method to create a predicated (validating) map.
|
static <K |
PredicatedSortedMap.predicatedSortedMap(SortedMap
Factory method to create a predicated (validating) sorted map.
|
static <K |
PredicatedSortedMap.predicatedSortedMap(SortedMap
Factory method to create a predicated (validating) sorted map.
|
| Constructor and Description | |
|---|---|
PredicatedMap(Map
Constructor that wraps (not copies).
|
|
PredicatedMap(Map
Constructor that wraps (not copies).
|
|
PredicatedSortedMap(SortedMap
Constructor that wraps (not copies).
|
|
PredicatedSortedMap(SortedMap
Constructor that wraps (not copies).
|
| Modifier and Type | Method and Description |
|---|---|
static <E> PredicatedMultiSet |
PredicatedMultiSet.predicatedMultiSet(MultiSet
Factory method to create a predicated (validating) multiset.
|
| Constructor and Description | |
|---|---|
PredicatedMultiSet(MultiSet
Constructor that wraps (not copies).
|
| Modifier and Type | Method and Description |
|---|---|
static <E> PredicatedQueue |
PredicatedQueue.predicatedQueue(Queue
Factory method to create a predicated (validating) queue.
|
| Constructor and Description | |
|---|---|
PredicatedQueue(Queue
Constructor that wraps (not copies).
|
| Modifier and Type | Method and Description |
|---|---|
static <E> PredicatedNavigableSet |
PredicatedNavigableSet.predicatedNavigableSet(NavigableSet
Factory method to create a predicated (validating) navigable set.
|
static <E> PredicatedSet |
PredicatedSet.predicatedSet(Set
Factory method to create a predicated (validating) set.
|
static <E> PredicatedSortedSet |
PredicatedSortedSet.predicatedSortedSet(SortedSet
Factory method to create a predicated (validating) sorted set.
|
| Constructor and Description | |
|---|---|
PredicatedNavigableSet(NavigableSet
Constructor that wraps (not copies).
|
|
PredicatedSet(Set
Constructor that wraps (not copies).
|
|
PredicatedSortedSet(SortedSet
Constructor that wraps (not copies).
|