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

Uses in package org.apache.commons.collections.functors

Classes implementing org.apache.commons.collections.Closure

class
Closure implementation that chains the specified closures together.
class
Closure implementation that always throws an exception.
class
Closure implementation that calls another closure n times, like a for loop.
class
Closure implementation acts as an if statement calling one or other closure based on a predicate.
class
Closure implementation that does nothing.
class
Closure implementation calls the closure whose predicate returns true, like a switch statement.
class
Closure implementation that calls a Transformer using the input object and ignore the result.
class
Closure implementation that executes a closure repeatedly until a condition is met, like a do-while or while loop.

Constructors with parameter type org.apache.commons.collections.Closure

Constructor that performs no validation.
Constructor that performs no validation.
ForClosure.ForClosure(int count, Closure closure)
Constructor that performs no validation.
IfClosure.IfClosure(Predicate predicate, Closure trueClosure, Closure falseClosure)
Constructor that performs no validation.
SwitchClosure.SwitchClosure(Predicate[] predicates, Closure[] closures, Closure defaultClosure)
Constructor that performs no validation.
WhileClosure.WhileClosure(Predicate predicate, Closure closure, boolean doLoop)
Constructor that performs no validation.

Fields of type org.apache.commons.collections.Closure

Closure
Singleton predicate instance
Closure
Singleton predicate instance

Methods with parameter type org.apache.commons.collections.Closure

Closure
ForClosure.getInstance(int count, Closure closure)
Factory method that performs validation.
Transformer
Factory method that performs validation.
Closure
Factory method that performs validation.
Closure
Factory method that performs validation and copies the parameter array.
Closure
WhileClosure.getInstance(Predicate predicate, Closure closure, boolean doLoop)
Factory method that performs validation.
Closure
IfClosure.getInstance(Predicate predicate, Closure trueClosure, Closure falseClosure)
Factory method that performs validation.
Closure
SwitchClosure.getInstance(Predicate[] predicates, Closure[] closures, Closure defaultClosure)
Factory method that performs validation and copies the parameter arrays.

Methods with return type org.apache.commons.collections.Closure

Closure
Gets the closure.
Closure
Gets the closure.
Closure
Gets the closure.
Closure[]
Gets the closures, do not modify the array.
Closure[]
Gets the closures, do not modify the array.
Closure
Gets the default closure.
Closure
Gets the closure called when false.
Closure
Factory returning the singleton instance.
Closure
Factory returning the singleton instance.
Closure
ChainedClosure.getInstance(Collection closures)
Create a new Closure that calls each closure in turn, passing the result into the next closure.
Closure
SwitchClosure.getInstance(Map predicatesAndClosures)
Create a new Closure that calls one of the closures depending on the predicates.
Closure
ForClosure.getInstance(int count, Closure closure)
Factory method that performs validation.
Closure
Factory method that performs validation.
Closure
Factory method that performs validation and copies the parameter array.
Closure
WhileClosure.getInstance(Predicate predicate, Closure closure, boolean doLoop)
Factory method that performs validation.
Closure
IfClosure.getInstance(Predicate predicate, Closure trueClosure, Closure falseClosure)
Factory method that performs validation.
Closure
SwitchClosure.getInstance(Predicate[] predicates, Closure[] closures, Closure defaultClosure)
Factory method that performs validation and copies the parameter arrays.
Closure
Factory method that performs validation.
Closure
Gets the closure called when true.

Uses in package org.apache.commons.collections

Methods with parameter type org.apache.commons.collections.Closure

Transformer
Creates a Transformer that calls a Closure each time the transformer is used.
Closure
Create a new Closure that calls two Closures, passing the result of the first into the second.
Closure
Create a new Closure that calls each closure in turn, passing the result into the next closure.
Closure
Creates a Closure that will call the closure once and then repeatedly until the predicate returns false.
void
CollectionUtils.forAllDo(Collection collection, Closure closure)
Executes the given closure on each element in the collection.
Closure
ClosureUtils.forClosure(int count, Closure closure)
Creates a Closure that will call the closure count times.
Closure
ClosureUtils.ifClosure(Predicate predicate, Closure trueClosure, Closure falseClosure)
Create a new Closure that calls one of two closures depending on the specified predicate.
Closure
ClosureUtils.switchClosure(Predicate[] predicates, Closure[] closures)
Create a new Closure that calls one of the closures depending on the predicates.
Closure
ClosureUtils.switchClosure(Predicate[] predicates, Closure[] closures, Closure defaultClosure)
Create a new Closure that calls one of the closures depending on the predicates.
Closure
Creates a Closure that will call the closure repeatedly until the predicate returns false.

Methods with return type org.apache.commons.collections.Closure

Closure
Creates a Closure that calls a Transformer each time it is called.
Closure
ClosureUtils.chainedClosure(Collection closures)
Create a new Closure that calls each closure in turn, passing the result into the next closure.
Closure
Create a new Closure that calls two Closures, passing the result of the first into the second.
Closure
Create a new Closure that calls each closure in turn, passing the result into the next closure.
Closure
Creates a Closure that will call the closure once and then repeatedly until the predicate returns false.
Closure
Gets a Closure that always throws an exception.
Closure
ClosureUtils.forClosure(int count, Closure closure)
Creates a Closure that will call the closure count times.
Closure
ClosureUtils.ifClosure(Predicate predicate, Closure trueClosure, Closure falseClosure)
Create a new Closure that calls one of two closures depending on the specified predicate.
Closure
ClosureUtils.invokerClosure(String methodName)
Creates a Closure that will invoke a specific method on the closure's input object by reflection.
Closure
ClosureUtils.invokerClosure(String methodName, Class[] paramTypes, Object[] args)
Creates a Closure that will invoke a specific method on the closure's input object by reflection.
Closure
Gets a Closure that will do nothing.
Closure
ClosureUtils.switchClosure(Map predicatesAndClosures)
Create a new Closure that calls one of the closures depending on the predicates.
Closure
ClosureUtils.switchClosure(Predicate[] predicates, Closure[] closures)
Create a new Closure that calls one of the closures depending on the predicates.
Closure
ClosureUtils.switchClosure(Predicate[] predicates, Closure[] closures, Closure defaultClosure)
Create a new Closure that calls one of the closures depending on the predicates.
Closure
ClosureUtils.switchMapClosure(Map objectsAndClosures)
Create a new Closure that uses the input object as a key to find the closure to call.
Closure
Creates a Closure that will call the closure repeatedly until the predicate returns false.

Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.