Uses of Interface
org.apache.commons.collections.Transformer
-
Packages that use Transformer Package Description org.apache.commons.collections This package contains the interfaces and utilities shared across all the subpackages of this component.org.apache.commons.collections.bag org.apache.commons.collections.buffer This package contains implementations of theBufferinterface.org.apache.commons.collections.collection This package contains implementations of theCollectioninterface.org.apache.commons.collections.comparators This package contains implementations of theComparatorinterface.org.apache.commons.collections.functors This package contains implementations of theClosure,Predicate,TransformerandFactoryinterfaces.org.apache.commons.collections.iterators This package contains implementations of theIteratorinterface.org.apache.commons.collections.list This package contains implementations of theListinterface.org.apache.commons.collections.map org.apache.commons.collections.set This package contains implementations of theSetandSortedSetinterfaces. -
-
Uses of Transformer in org.apache.commons.collections
Methods in org.apache.commons.collections that return Transformer Modifier and Type Method Description static TransformerTransformerUtils. asTransformer(Closure closure)Creates a Transformer that calls a Closure each time the transformer is used.static TransformerTransformerUtils. asTransformer(Factory factory)Creates a Transformer that calls a Factory each time the transformer is used.static TransformerTransformerUtils. asTransformer(Predicate predicate)Creates a Transformer that calls a Predicate each time the transformer is used.static TransformerTransformerUtils. chainedTransformer(java.util.Collection transformers)Create a new Transformer that calls each transformer in turn, passing the result into the next transformer.static TransformerTransformerUtils. chainedTransformer(Transformer[] transformers)Create a new Transformer that calls each transformer in turn, passing the result into the next transformer.static TransformerTransformerUtils. chainedTransformer(Transformer transformer1, Transformer transformer2)Create a new Transformer that calls two transformers, passing the result of the first into the second.static TransformerTransformerUtils. cloneTransformer()Gets a transformer that returns a clone of the input object.static TransformerTransformerUtils. constantTransformer(java.lang.Object constantToReturn)Creates a Transformer that will return the same object each time the transformer is used.static TransformerTransformerUtils. exceptionTransformer()Gets a transformer that always throws an exception.protected TransformerBeanMap. getTypeTransformer(java.lang.Class aType)Deprecated.Returns a transformer for the given primitive type.static TransformerTransformerUtils. instantiateTransformer()Gets a Transformer that expects an input Class object that it will instantiate.static TransformerTransformerUtils. instantiateTransformer(java.lang.Class[] paramTypes, java.lang.Object[] args)Creates a Transformer that expects an input Class object that it will instantiate.static TransformerTransformerUtils. invokerTransformer(java.lang.String methodName)Gets a Transformer that invokes a method on the input object.static TransformerTransformerUtils. invokerTransformer(java.lang.String methodName, java.lang.Class[] paramTypes, java.lang.Object[] args)Gets a Transformer that invokes a method on the input object.static TransformerTransformerUtils. mapTransformer(java.util.Map map)Creates a Transformer that uses the passed in Map to transform the input object (as a simple lookup).static TransformerTransformerUtils. nopTransformer()Gets a transformer that returns the input object.static TransformerTransformerUtils. nullTransformer()Gets a transformer that always returns null.static TransformerTransformerUtils. stringValueTransformer()Gets a transformer that returns ajava.lang.Stringrepresentation of the input object.static TransformerTransformerUtils. switchMapTransformer(java.util.Map objectsAndTransformers)Create a new Transformer that uses the input object as a key to find the transformer to call.static TransformerTransformerUtils. switchTransformer(java.util.Map predicatesAndTransformers)Create a new Transformer that calls one of the transformers depending on the predicates.static TransformerTransformerUtils. switchTransformer(Predicate[] predicates, Transformer[] transformers)Create a new Transformer that calls one of the transformers depending on the predicates.static TransformerTransformerUtils. switchTransformer(Predicate[] predicates, Transformer[] transformers, Transformer defaultTransformer)Create a new Transformer that calls one of the transformers depending on the predicates.static TransformerTransformerUtils. switchTransformer(Predicate predicate, Transformer trueTransformer, Transformer falseTransformer)Create a new Transformer that calls one of two transformers depending on the specified predicate.Methods in org.apache.commons.collections with parameters of type Transformer Modifier and Type Method Description static ClosureClosureUtils. asClosure(Transformer transformer)Creates a Closure that calls a Transformer each time it is called.static PredicatePredicateUtils. asPredicate(Transformer transformer)Create a new Predicate that wraps a Transformer.static TransformerTransformerUtils. chainedTransformer(Transformer[] transformers)Create a new Transformer that calls each transformer in turn, passing the result into the next transformer.static TransformerTransformerUtils. chainedTransformer(Transformer transformer1, Transformer transformer2)Create a new Transformer that calls two transformers, passing the result of the first into the second.static java.util.CollectionCollectionUtils. collect(java.util.Collection inputCollection, Transformer transformer)Returns a new Collection consisting of the elements of inputCollection transformed by the given transformer.static java.util.CollectionCollectionUtils. collect(java.util.Collection inputCollection, Transformer transformer, java.util.Collection outputCollection)Transforms all elements from inputCollection with the given transformer and adds them to the outputCollection.static java.util.CollectionCollectionUtils. collect(java.util.Iterator inputIterator, Transformer transformer)Transforms all elements from the inputIterator with the given transformer and adds them to the outputCollection.static java.util.CollectionCollectionUtils. collect(java.util.Iterator inputIterator, Transformer transformer, java.util.Collection outputCollection)Transforms all elements from the inputIterator with the given transformer and adds them to the outputCollection.static java.util.MapMapUtils. lazyMap(java.util.Map map, Transformer transformerFactory)Returns a "lazy" map whose values will be created on demand.static java.util.SortedMapMapUtils. lazySortedMap(java.util.SortedMap map, Transformer transformerFactory)Returns a "lazy" sorted map whose values will be created on demand.static java.util.IteratorIteratorUtils. objectGraphIterator(java.lang.Object root, Transformer transformer)Gets an iterator that operates over an object graph.static TransformerTransformerUtils. switchTransformer(Predicate[] predicates, Transformer[] transformers)Create a new Transformer that calls one of the transformers depending on the predicates.static TransformerTransformerUtils. switchTransformer(Predicate[] predicates, Transformer[] transformers, Transformer defaultTransformer)Create a new Transformer that calls one of the transformers depending on the predicates.static TransformerTransformerUtils. switchTransformer(Predicate predicate, Transformer trueTransformer, Transformer falseTransformer)Create a new Transformer that calls one of two transformers depending on the specified predicate.static voidCollectionUtils. transform(java.util.Collection collection, Transformer transformer)Transform the collection by applying a Transformer to each element.static BagBagUtils. transformedBag(Bag bag, Transformer transformer)Returns a transformed bag backed by the given bag.static BufferBufferUtils. transformedBuffer(Buffer buffer, Transformer transformer)Returns a transformed buffer backed by the given buffer.static java.util.CollectionCollectionUtils. transformedCollection(java.util.Collection collection, Transformer transformer)Returns a transformed bag backed by the given collection.static java.util.ComparatorComparatorUtils. transformedComparator(java.util.Comparator comparator, Transformer transformer)Gets a Comparator that passes transformed objects to the given comparator.static java.util.IteratorIteratorUtils. transformedIterator(java.util.Iterator iterator, Transformer transform)Gets an iterator that transforms the elements of another iterator.static java.util.ListListUtils. transformedList(java.util.List list, Transformer transformer)Returns a transformed list backed by the given list.static java.util.MapMapUtils. transformedMap(java.util.Map map, Transformer keyTransformer, Transformer valueTransformer)Returns a transformed map backed by the given map.static PredicatePredicateUtils. transformedPredicate(Transformer transformer, Predicate predicate)Creates a predicate that transforms the input object before passing it to the predicate.static java.util.SetSetUtils. transformedSet(java.util.Set set, Transformer transformer)Returns a transformed set backed by the given set.static SortedBagBagUtils. transformedSortedBag(SortedBag bag, Transformer transformer)Returns a transformed sorted bag backed by the given bag.static java.util.SortedMapMapUtils. transformedSortedMap(java.util.SortedMap map, Transformer keyTransformer, Transformer valueTransformer)Returns a transformed sorted map backed by the given map.static java.util.SortedSetSetUtils. transformedSortedSet(java.util.SortedSet set, Transformer transformer)Returns a transformed sorted set backed by the given set. -
Uses of Transformer in org.apache.commons.collections.bag
Methods in org.apache.commons.collections.bag with parameters of type Transformer Modifier and Type Method Description static BagTransformedBag. decorate(Bag bag, Transformer transformer)Factory method to create a transforming bag.static SortedBagTransformedSortedBag. decorate(SortedBag bag, Transformer transformer)Factory method to create a transforming sorted bag.Constructors in org.apache.commons.collections.bag with parameters of type Transformer Constructor Description TransformedBag(Bag bag, Transformer transformer)Constructor that wraps (not copies).TransformedSortedBag(SortedBag bag, Transformer transformer)Constructor that wraps (not copies). -
Uses of Transformer in org.apache.commons.collections.buffer
Methods in org.apache.commons.collections.buffer with parameters of type Transformer Modifier and Type Method Description static BufferTransformedBuffer. decorate(Buffer buffer, Transformer transformer)Factory method to create a transforming buffer.Constructors in org.apache.commons.collections.buffer with parameters of type Transformer Constructor Description TransformedBuffer(Buffer buffer, Transformer transformer)Constructor that wraps (not copies). -
Uses of Transformer in org.apache.commons.collections.collection
Fields in org.apache.commons.collections.collection declared as Transformer Modifier and Type Field Description protected TransformerTransformedCollection. transformerThe transformer to useMethods in org.apache.commons.collections.collection with parameters of type Transformer Modifier and Type Method Description static java.util.CollectionTransformedCollection. decorate(java.util.Collection coll, Transformer transformer)Factory method to create a transforming collection.Constructors in org.apache.commons.collections.collection with parameters of type Transformer Constructor Description TransformedCollection(java.util.Collection coll, Transformer transformer)Constructor that wraps (not copies). -
Uses of Transformer in org.apache.commons.collections.comparators
Fields in org.apache.commons.collections.comparators declared as Transformer Modifier and Type Field Description protected TransformerTransformingComparator. transformerThe transformer being used.Constructors in org.apache.commons.collections.comparators with parameters of type Transformer Constructor Description TransformingComparator(Transformer transformer)Constructs an instance with the given Transformer and aComparableComparator.TransformingComparator(Transformer transformer, java.util.Comparator decorated)Constructs an instance with the given Transformer and Comparator. -
Uses of Transformer in org.apache.commons.collections.functors
Classes in org.apache.commons.collections.functors that implement Transformer Modifier and Type Class Description classChainedTransformerTransformer implementation that chains the specified transformers together.classCloneTransformerTransformer implementation that returns a clone of the input object.classClosureTransformerTransformer implementation that calls a Closure using the input object and then returns the input.classConstantTransformerTransformer implementation that returns the same constant each time.classExceptionTransformerTransformer implementation that always throws an exception.classFactoryTransformerTransformer implementation that calls a Factory and returns the result.classInstantiateTransformerTransformer implementation that creates a new object instance by reflection.classInvokerTransformerTransformer implementation that creates a new object instance by reflection.classMapTransformerTransformer implementation that returns the value held in a specified map using the input parameter as a key.classNOPTransformerTransformer implementation that does nothing.classPredicateTransformerTransformer implementation that calls a Predicate using the input object and then returns the input.classStringValueTransformerTransformer implementation that returns the result of callingString.valueOfon the input object.classSwitchTransformerTransformer implementation calls the transformer whose predicate returns true, like a switch statement.Fields in org.apache.commons.collections.functors declared as Transformer Modifier and Type Field Description static TransformerCloneTransformer. INSTANCESingleton predicate instancestatic TransformerExceptionTransformer. INSTANCESingleton predicate instancestatic TransformerNOPTransformer. INSTANCESingleton predicate instancestatic TransformerStringValueTransformer. INSTANCESingleton predicate instancestatic TransformerInstantiateTransformer. NO_ARG_INSTANCESingleton instance that uses the no arg constructorstatic TransformerConstantTransformer. NULL_INSTANCEReturns null each timeMethods in org.apache.commons.collections.functors that return Transformer Modifier and Type Method Description TransformerSwitchTransformer. getDefaultTransformer()Gets the default transformer.static TransformerChainedTransformer. getInstance(java.util.Collection transformers)Create a new Transformer that calls each transformer in turn, passing the result into the next transformer.static TransformerChainedTransformer. getInstance(Transformer[] transformers)Factory method that performs validation and copies the parameter array.static TransformerChainedTransformer. getInstance(Transformer transformer1, Transformer transformer2)Factory method that performs validation.static TransformerCloneTransformer. getInstance()Factory returning the singleton instance.static TransformerClosureTransformer. getInstance(Closure closure)Factory method that performs validation.static TransformerConstantTransformer. getInstance(java.lang.Object constantToReturn)Transformer method that performs validation.static TransformerExceptionTransformer. getInstance()Factory returning the singleton instance.static TransformerFactoryTransformer. getInstance(Factory factory)Factory method that performs validation.static TransformerInstantiateTransformer. getInstance(java.lang.Class[] paramTypes, java.lang.Object[] args)Transformer method that performs validation.static TransformerInvokerTransformer. getInstance(java.lang.String methodName)Gets an instance of this transformer calling a specific method with no arguments.static TransformerInvokerTransformer. getInstance(java.lang.String methodName, java.lang.Class[] paramTypes, java.lang.Object[] args)Gets an instance of this transformer calling a specific method with specific values.static TransformerMapTransformer. getInstance(java.util.Map map)Factory to create the transformer.static TransformerNOPTransformer. getInstance()Factory returning the singleton instance.static TransformerPredicateTransformer. getInstance(Predicate predicate)Factory method that performs validation.static TransformerStringValueTransformer. getInstance()Factory returning the singleton instance.static TransformerSwitchTransformer. getInstance(java.util.Map predicatesAndTransformers)Create a new Transformer that calls one of the transformers depending on the predicates.static TransformerSwitchTransformer. getInstance(Predicate[] predicates, Transformer[] transformers, Transformer defaultTransformer)Factory method that performs validation and copies the parameter arrays.TransformerTransformedPredicate. getTransformer()Gets the transformer in use.TransformerTransformerClosure. getTransformer()Gets the transformer.TransformerTransformerPredicate. getTransformer()Gets the transformer.Transformer[]ChainedTransformer. getTransformers()Gets the transformers, do not modify the array.Transformer[]SwitchTransformer. getTransformers()Gets the transformers, do not modify the array.Methods in org.apache.commons.collections.functors with parameters of type Transformer Modifier and Type Method Description static TransformerChainedTransformer. getInstance(Transformer[] transformers)Factory method that performs validation and copies the parameter array.static TransformerChainedTransformer. getInstance(Transformer transformer1, Transformer transformer2)Factory method that performs validation.static TransformerSwitchTransformer. getInstance(Predicate[] predicates, Transformer[] transformers, Transformer defaultTransformer)Factory method that performs validation and copies the parameter arrays.static PredicateTransformedPredicate. getInstance(Transformer transformer, Predicate predicate)Factory to create the predicate.static ClosureTransformerClosure. getInstance(Transformer transformer)Factory method that performs validation.static PredicateTransformerPredicate. getInstance(Transformer transformer)Factory to create the predicate.Constructors in org.apache.commons.collections.functors with parameters of type Transformer Constructor Description ChainedTransformer(Transformer[] transformers)Constructor that performs no validation.SwitchTransformer(Predicate[] predicates, Transformer[] transformers, Transformer defaultTransformer)Constructor that performs no validation.TransformedPredicate(Transformer transformer, Predicate predicate)Constructor that performs no validation.TransformerClosure(Transformer transformer)Constructor that performs no validation.TransformerPredicate(Transformer transformer)Constructor that performs no validation. -
Uses of Transformer in org.apache.commons.collections.iterators
Fields in org.apache.commons.collections.iterators declared as Transformer Modifier and Type Field Description protected TransformerObjectGraphIterator. transformerThe transformer to useMethods in org.apache.commons.collections.iterators that return Transformer Modifier and Type Method Description TransformerTransformIterator. getTransformer()Gets the transformer this iterator is using.Methods in org.apache.commons.collections.iterators with parameters of type Transformer Modifier and Type Method Description voidTransformIterator. setTransformer(Transformer transformer)Sets the transformer this the iterator to use.Constructors in org.apache.commons.collections.iterators with parameters of type Transformer Constructor Description ObjectGraphIterator(java.lang.Object root, Transformer transformer)Constructs an ObjectGraphIterator using a root object and transformer.TransformIterator(java.util.Iterator iterator, Transformer transformer)Constructs a newTransformIteratorthat will use the given iterator and transformer. -
Uses of Transformer in org.apache.commons.collections.list
Methods in org.apache.commons.collections.list with parameters of type Transformer Modifier and Type Method Description static java.util.ListTransformedList. decorate(java.util.List list, Transformer transformer)Factory method to create a transforming list.Constructors in org.apache.commons.collections.list with parameters of type Transformer Constructor Description TransformedList(java.util.List list, Transformer transformer)Constructor that wraps (not copies). -
Uses of Transformer in org.apache.commons.collections.map
Fields in org.apache.commons.collections.map declared as Transformer Modifier and Type Field Description protected TransformerLazyMap. factoryThe factory to use to construct elementsprotected TransformerTransformedMap. keyTransformerThe transformer to use for the keyprotected TransformerTransformedMap. valueTransformerThe transformer to use for the valueMethods in org.apache.commons.collections.map with parameters of type Transformer Modifier and Type Method Description static java.util.MapDefaultedMap. decorate(java.util.Map map, Transformer factory)Factory method to create a defaulting map.static java.util.MapLazyMap. decorate(java.util.Map map, Transformer factory)Factory method to create a lazily instantiated map.static java.util.SortedMapLazySortedMap. decorate(java.util.SortedMap map, Transformer factory)Factory method to create a lazily instantiated sorted map.static java.util.MapTransformedMap. decorate(java.util.Map map, Transformer keyTransformer, Transformer valueTransformer)Factory method to create a transforming map.static java.util.SortedMapTransformedSortedMap. decorate(java.util.SortedMap map, Transformer keyTransformer, Transformer valueTransformer)Factory method to create a transforming sorted map.static java.util.MapTransformedMap. decorateTransform(java.util.Map map, Transformer keyTransformer, Transformer valueTransformer)Factory method to create a transforming map that will transform existing contents of the specified map.static java.util.SortedMapTransformedSortedMap. decorateTransform(java.util.SortedMap map, Transformer keyTransformer, Transformer valueTransformer)Factory method to create a transforming sorted map that will transform existing contents of the specified map.Constructors in org.apache.commons.collections.map with parameters of type Transformer Constructor Description LazyMap(java.util.Map map, Transformer factory)Constructor that wraps (not copies).LazySortedMap(java.util.SortedMap map, Transformer factory)Constructor that wraps (not copies).TransformedMap(java.util.Map map, Transformer keyTransformer, Transformer valueTransformer)Constructor that wraps (not copies).TransformedSortedMap(java.util.SortedMap map, Transformer keyTransformer, Transformer valueTransformer)Constructor that wraps (not copies). -
Uses of Transformer in org.apache.commons.collections.set
Methods in org.apache.commons.collections.set with parameters of type Transformer Modifier and Type Method Description static java.util.SetTransformedSet. decorate(java.util.Set set, Transformer transformer)Factory method to create a transforming set.static java.util.SortedSetTransformedSortedSet. decorate(java.util.SortedSet set, Transformer transformer)Factory method to create a transforming sorted set.Constructors in org.apache.commons.collections.set with parameters of type Transformer Constructor Description TransformedSet(java.util.Set set, Transformer transformer)Constructor that wraps (not copies).TransformedSortedSet(java.util.SortedSet set, Transformer transformer)Constructor that wraps (not copies).
-