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

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

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

TransformedSet.TransformedSet(Set set, Transformer transformer)
Constructor that wraps (not copies).
Constructor that wraps (not copies).

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

Set
TransformedSet.decorate(Set set, Transformer transformer)
Factory method to create a transforming set.
SortedSet
TransformedSortedSet.decorate(SortedSet set, Transformer transformer)
Factory method to create a transforming sorted set.

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

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

TransformedList.TransformedList(List list, Transformer transformer)
Constructor that wraps (not copies).

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

List
TransformedList.decorate(List list, Transformer transformer)
Factory method to create a transforming list.

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

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

Constructs an ObjectGraphIterator using a root object and transformer.
TransformIterator.TransformIterator(Iterator iterator, Transformer transformer)
Constructs a new TransformIterator that will use the given iterator and transformer.

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

Transformer
The transformer to use

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

void
Sets the transformer this the iterator to use.

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

Transformer
Gets the transformer this iterator is using.

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

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

Constructor that wraps (not copies).

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

Buffer
Factory method to create a transforming buffer.

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

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

Constructor that wraps (not copies).
Constructor that wraps (not copies).

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

Bag
Factory method to create a transforming bag.
SortedBag
Factory method to create a transforming sorted bag.

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

Classes implementing org.apache.commons.collections.Transformer

class
Transformer implementation that chains the specified transformers together.
class
Transformer implementation that returns a clone of the input object.
class
Transformer implementation that calls a Closure using the input object and then returns the input.
class
Transformer implementation that returns the same constant each time.
class
Transformer implementation that always throws an exception.
class
Transformer implementation that calls a Factory and returns the result.
class
Transformer implementation that creates a new object instance by reflection.
class
Transformer implementation that creates a new object instance by reflection.
class
Transformer implementation that returns the value held in a specified map using the input parameter as a key.
class
Transformer implementation that does nothing.
class
Transformer implementation that calls a Predicate using the input object and then returns the input.
class
Transformer implementation that returns the String.valueOf.
class
Transformer implementation calls the transformer whose predicate returns true, like a switch statement.

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

Constructor that performs no validation.
SwitchTransformer.SwitchTransformer(Predicate[] predicates, Transformer[] transformers, Transformer defaultTransformer)
Constructor that performs no validation.
Constructor that performs no validation.
Constructor that performs no validation.
Constructor that performs no validation.

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

Transformer
Singleton predicate instance
Transformer
Singleton predicate instance
Transformer
Singleton predicate instance
Transformer
Singleton predicate instance
Transformer
Singleton instance that uses the no arg constructor
Transformer
Returns null each time

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

Transformer
SwitchTransformer.getInstance(Predicate[] predicates, Transformer[] transformers, Transformer defaultTransformer)
Factory method that performs validation and copies the parameter arrays.
Closure
Factory method that performs validation.
Predicate
Factory to create the predicate.
Predicate
Factory to create the predicate.
Transformer
Factory method that performs validation.
Transformer
Factory method that performs validation and copies the parameter array.

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

Transformer
Gets the default transformer.
Transformer
Factory returning the singleton instance.
Transformer
Factory returning the singleton instance.
Transformer
Factory returning the singleton instance.
Transformer
Factory returning the singleton instance.
Transformer
InstantiateTransformer.getInstance(Class[] paramTypes, Object[] args)
Transformer method that performs validation.
Transformer
ChainedTransformer.getInstance(Collection transformers)
Create a new Transformer that calls each transformer in turn, passing the result into the next transformer.
Transformer
Factory to create the transformer.
Transformer
SwitchTransformer.getInstance(Map predicatesAndTransformers)
Create a new Transformer that calls one of the transformers depending on the predicates.
Transformer
ConstantTransformer.getInstance(Object constantToReturn)
Transformer method that performs validation.
Transformer
InvokerTransformer.getInstance(String methodName)
Gets an instance of this transformer calling a specific method with no arguments.
Transformer
InvokerTransformer.getInstance(String methodName, Class[] paramTypes, Object[] args)
Gets an instance of this transformer calling a specific method with specific values.
Transformer
Factory method that performs validation.
Transformer
Factory method that performs validation.
Transformer
Factory method that performs validation.
Transformer
SwitchTransformer.getInstance(Predicate[] predicates, Transformer[] transformers, Transformer defaultTransformer)
Factory method that performs validation and copies the parameter arrays.
Transformer
Factory method that performs validation.
Transformer
Factory method that performs validation and copies the parameter array.
Transformer
Gets the transformer in use.
Transformer
Gets the transformer.
Transformer
Gets the transformer.
Transformer[]
Gets the transformers, do not modify the array.
Transformer[]
Gets the transformers, do not modify the array.

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

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

LazyMap.LazyMap(Map map, Transformer factory)
Constructor that wraps (not copies).
LazySortedMap.LazySortedMap(SortedMap map, Transformer factory)
Constructor that wraps (not copies).
TransformedMap.TransformedMap(Map map, Transformer keyTransformer, Transformer valueTransformer)
Constructor that wraps (not copies).
TransformedSortedMap.TransformedSortedMap(SortedMap map, Transformer keyTransformer, Transformer valueTransformer)
Constructor that wraps (not copies).

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

Transformer
The factory to use to construct elements
Transformer
The transformer to use for the key
Transformer
The transformer to use for the value

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

Map
LazyMap.decorate(Map map, Transformer factory)
Factory method to create a lazily instantiated map.
Map
TransformedMap.decorate(Map map, Transformer keyTransformer, Transformer valueTransformer)
Factory method to create a transforming map.
SortedMap
LazySortedMap.decorate(SortedMap map, Transformer factory)
Factory method to create a lazily instantiated sorted map.
SortedMap
TransformedSortedMap.decorate(SortedMap map, Transformer keyTransformer, Transformer valueTransformer)
Factory method to create a transforming sorted map.

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

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

Constructor that wraps (not copies).

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

Transformer
The transformer to use

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

Collection
TransformedCollection.decorate(Collection coll, Transformer transformer)
Factory method to create a transforming collection.

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

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

Constructs an instance with the given Transformer and a ComparableComparator.
TransformingComparator.TransformingComparator(Transformer transformer, Comparator decorated)
Constructs an instance with the given Transformer and Comparator.

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

Transformer
The transformer being used.

Uses in package org.apache.commons.collections

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

Closure
Creates a Closure that calls a Transformer each time it is called.
Predicate
Create a new Predicate that wraps a Transformer.
Transformer
Create a new Transformer that calls two transformers, passing the result of the first into the second.
Transformer
Create a new Transformer that calls each transformer in turn, passing the result into the next transformer.
Collection
CollectionUtils.collect(Collection inputCollection, Transformer transformer)
Returns a new Collection consisting of the elements of inputCollection transformed by the given transformer.
Collection
CollectionUtils.collect(Collection inputCollection, Transformer transformer, Collection outputCollection)
Transforms all elements from inputCollection with the given transformer and adds them to the outputCollection.
Collection
CollectionUtils.collect(Iterator inputIterator, Transformer transformer)
Transforms all elements from the inputIterator with the given transformer and adds them to the outputCollection.
Collection
CollectionUtils.collect(Iterator inputIterator, Transformer transformer, Collection outputCollection)
Transforms all elements from the inputIterator with the given transformer and adds them to the outputCollection.
Map
MapUtils.lazyMap(Map map, Transformer transformerFactory)
Returns a "lazy" map whose values will be created on demand.
SortedMap
MapUtils.lazySortedMap(SortedMap map, Transformer transformerFactory)
Returns a "lazy" sorted map whose values will be created on demand.
Iterator
IteratorUtils.objectGraphIterator(Object root, Transformer transformer)
Gets an iterator that operates over an object graph.
Transformer
TransformerUtils.switchTransformer(Predicate predicate, Transformer trueTransformer, Transformer falseTransformer)
Create a new Transformer that calls one of two transformers depending on the specified predicate.
Transformer
Create a new Transformer that calls one of the transformers depending on the predicates.
Transformer
TransformerUtils.switchTransformer(Predicate[] predicates, Transformer[] transformers, Transformer defaultTransformer)
Create a new Transformer that calls one of the transformers depending on the predicates.
void
CollectionUtils.transform(Collection collection, Transformer transformer)
Transform the collection by applying a Transformer to each element.
Bag
Returns a transformed bag backed by the given bag.
Buffer
Returns a transformed buffer backed by the given buffer.
Collection
CollectionUtils.transformedCollection(Collection collection, Transformer transformer)
Returns a transformed bag backed by the given collection.
Comparator
ComparatorUtils.transformedComparator(Comparator comparator, Transformer transformer)
Gets a Comparator that passes transformed objects to the given comparator.
Iterator
IteratorUtils.transformedIterator(Iterator iterator, Transformer transform)
Gets an iterator that transforms the elements of another iterator.
List
ListUtils.transformedList(List list, Transformer transformer)
Returns a transformed list backed by the given list.
Map
MapUtils.transformedMap(Map map, Transformer keyTransformer, Transformer valueTransformer)
Returns a transformed map backed by the given map.
Predicate
Creates a predicate that transforms the input object before passing it to the predicate.
Set
SetUtils.transformedSet(Set set, Transformer transformer)
Returns a transformed set backed by the given set.
SortedBag
Returns a transformed sorted bag backed by the given bag.
SortedMap
MapUtils.transformedSortedMap(SortedMap map, Transformer keyTransformer, Transformer valueTransformer)
Returns a transformed sorted map backed by the given map.
SortedSet
SetUtils.transformedSortedSet(SortedSet set, Transformer transformer)
Returns a transformed sorted set backed by the given set.

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

Transformer
Creates a Transformer that calls a Closure each time the transformer is used.
Transformer
Creates a Transformer that calls a Factory each time the transformer is used.
Transformer
Creates a Transformer that calls a Predicate each time the transformer is used.
Transformer
TransformerUtils.chainedTransformer(Collection transformers)
Create a new Transformer that calls each transformer in turn, passing the result into the next transformer.
Transformer
Create a new Transformer that calls two transformers, passing the result of the first into the second.
Transformer
Create a new Transformer that calls each transformer in turn, passing the result into the next transformer.
Transformer
Gets a transformer that returns a clone of the input object.
Transformer
TransformerUtils.constantTransformer(Object constantToReturn)
Creates a Transformer that will return the same object each time the transformer is used.
Transformer
Gets a transformer that always throws an exception.
Transformer
Returns a transformer for the given primitive type.
Transformer
Gets a Transformer that expects an input Class object that it will instantiate.
Transformer
TransformerUtils.instantiateTransformer(Class[] paramTypes, Object[] args)
Creates a Transformer that expects an input Class object that it will instantiate.
Transformer
Gets a Transformer that invokes a method on the input object.
Transformer
TransformerUtils.invokerTransformer(String methodName, Class[] paramTypes, Object[] args)
Gets a Transformer that invokes a method on the input object.
Transformer
Creates a Transformer that uses the passed in Map to transform the input object (as a simple lookup).
Transformer
Gets a transformer that returns the input object.
Transformer
Gets a transformer that always returns null.
Transformer
Gets a transformer that returns a java.lang.String representation of the input object.
Transformer
TransformerUtils.switchMapTransformer(Map objectsAndTransformers)
Create a new Transformer that uses the input object as a key to find the transformer to call.
Transformer
TransformerUtils.switchTransformer(Map predicatesAndTransformers)
Create a new Transformer that calls one of the transformers depending on the predicates.
Transformer
TransformerUtils.switchTransformer(Predicate predicate, Transformer trueTransformer, Transformer falseTransformer)
Create a new Transformer that calls one of two transformers depending on the specified predicate.
Transformer
Create a new Transformer that calls one of the transformers depending on the predicates.
Transformer
TransformerUtils.switchTransformer(Predicate[] predicates, Transformer[] transformers, Transformer defaultTransformer)
Create a new Transformer that calls one of the transformers depending on the predicates.

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