Uses of Interface
org.apache.commons.collections4.Transformer
-
Packages that use Transformer 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 theCollectioninterface.org.apache.commons.collections4.comparators This package contains implementations of theComparatorinterface.org.apache.commons.collections4.functors This package contains implementations of theClosure,Predicate,TransformerandFactoryinterfaces.org.apache.commons.collections4.iterators This package contains implementations of theIteratorinterface.org.apache.commons.collections4.list This package contains implementations of theListinterface.org.apache.commons.collections4.map org.apache.commons.collections4.multimap This package contains implementations of theMultiValuedMapinterfaces.org.apache.commons.collections4.queue This package contains implementations for theQueueinterface.org.apache.commons.collections4.set This package contains implementations of theSet,SortedSetandNavigableSetinterfaces.org.apache.commons.collections4.splitmap -
-
Uses of Transformer in org.apache.commons.collections4
Methods in org.apache.commons.collections4 that return Transformer Modifier and Type Method Description static <T> Transformer<T,T>TransformerUtils. asTransformer(Closure<? super T> closure)Creates a Transformer that calls a Closure each time the transformer is used.static <I,O>
Transformer<I,O>TransformerUtils. asTransformer(Factory<? extends O> factory)Creates a Transformer that calls a Factory each time the transformer is used.static <T> Transformer<T,java.lang.Boolean>TransformerUtils. asTransformer(Predicate<? super T> predicate)Creates a Transformer that calls a Predicate each time the transformer is used.static <T> Transformer<T,T>TransformerUtils. chainedTransformer(java.util.Collection<? extends Transformer<? super T,? extends T>> transformers)Create a new Transformer that calls each transformer in turn, passing the result into the next transformer.static <T> Transformer<T,T>TransformerUtils. chainedTransformer(Transformer<? super T,? extends T>... transformers)Create a new Transformer that calls each transformer in turn, passing the result into the next transformer.static <T> Transformer<T,T>TransformerUtils. cloneTransformer()Gets a transformer that returns a clone of the input object.static <I,O>
Transformer<I,O>TransformerUtils. constantTransformer(O constantToReturn)Creates a Transformer that will return the same object each time the transformer is used.static <I,O>
Transformer<I,O>TransformerUtils. exceptionTransformer()Gets a transformer that always throws an exception.static <I,O>
Transformer<I,O>TransformerUtils. ifTransformer(Predicate<? super 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 <T> Transformer<T,T>TransformerUtils. ifTransformer(Predicate<? super T> predicate, Transformer<? super T,? extends T> trueTransformer)Create a new Transformer that calls the transformer if the predicate is true, otherwise the input object is returned unchanged.static <T> Transformer<java.lang.Class<? extends T>,T>TransformerUtils. instantiateTransformer()Gets a Transformer that expects an input Class object that it will instantiate.static <T> Transformer<java.lang.Class<? extends T>,T>TransformerUtils. instantiateTransformer(java.lang.Class<?>[] paramTypes, java.lang.Object[] args)Creates a Transformer that expects an input Class object that it will instantiate.static <I,O>
Transformer<I,O>TransformerUtils. invokerTransformer(java.lang.String methodName)Gets a Transformer that invokes a method on the input object.static <I,O>
Transformer<I,O>TransformerUtils. 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 <I,O>
Transformer<I,O>TransformerUtils. mapTransformer(java.util.Map<? super I,? extends O> map)Creates a Transformer that uses the passed in Map to transform the input object (as a simple lookup).static <T> Transformer<T,T>TransformerUtils. nopTransformer()Gets a transformer that returns the input object.static <I,O>
Transformer<I,O>TransformerUtils. nullTransformer()Gets a transformer that always returns null.static <T> Transformer<T,java.lang.String>TransformerUtils. stringValueTransformer()Gets a transformer that returns ajava.lang.Stringrepresentation of the input object.static <I,O>
Transformer<I,O>TransformerUtils. switchMapTransformer(java.util.Map<I,Transformer<I,O>> objectsAndTransformers)Create a new Transformer that uses the input object as a key to find the transformer to call.static <I,O>
Transformer<I,O>TransformerUtils. switchTransformer(java.util.Map<Predicate<I>,Transformer<I,O>> predicatesAndTransformers)Create a new Transformer that calls one of the transformers depending on the predicates.static <I,O>
Transformer<I,O>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 <I,O>
Transformer<I,O>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 <I,O>
Transformer<I,O>TransformerUtils. switchTransformer(Predicate<? super I> predicate, Transformer<? super I,? extends O> trueTransformer, Transformer<? super I,? extends O> falseTransformer)Deprecated.Methods in org.apache.commons.collections4 with parameters of type Transformer Modifier and Type Method Description static <E> Closure<E>ClosureUtils. asClosure(Transformer<? super E,?> transformer)Creates a Closure that calls a Transformer each time it is called.static <T> Predicate<T>PredicateUtils. asPredicate(Transformer<? super T,java.lang.Boolean> transformer)Create a new Predicate that wraps a Transformer.static <T> Transformer<T,T>TransformerUtils. chainedTransformer(Transformer<? super T,? extends T>... transformers)Create a new Transformer that calls each transformer in turn, passing the result into the next transformer.static <I,O,R extends java.util.Collection<? super O>>
RCollectionUtils. collect(java.lang.Iterable<? extends I> inputCollection, Transformer<? super I,? extends O> transformer, R outputCollection)Transforms all elements from input collection with the given transformer and adds them to the output collection.static <I,O>
java.util.Collection<O>CollectionUtils. collect(java.lang.Iterable<I> inputCollection, Transformer<? super I,? extends O> transformer)Returns a new Collection containing all elements of the input collection transformed by the given transformer.static <I,O,R extends java.util.Collection<? super O>>
RCollectionUtils. collect(java.util.Iterator<? extends I> inputIterator, Transformer<? super I,? extends O> transformer, R outputCollection)Transforms all elements from the input iterator with the given transformer and adds them to the output collection.static <I,O>
java.util.Collection<O>CollectionUtils. collect(java.util.Iterator<I> inputIterator, Transformer<? super I,? extends O> transformer)Transforms all elements from the input iterator with the given transformer and adds them to the output collection.static <I,O>
Transformer<I,O>TransformerUtils. ifTransformer(Predicate<? super 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 <T> Transformer<T,T>TransformerUtils. ifTransformer(Predicate<? super T> predicate, Transformer<? super T,? extends T> trueTransformer)Create a new Transformer that calls the transformer if the predicate is true, otherwise the input object is returned unchanged.static <E> java.util.List<E>ListUtils. lazyList(java.util.List<E> list, Transformer<java.lang.Integer,? extends E> transformer)Returns a "lazy" list whose elements will be created on demand.static <K,V>
IterableMap<K,V>MapUtils. lazyMap(java.util.Map<K,V> map, Transformer<? super K,? extends V> transformerFactory)Returns a "lazy" map whose values will be created on demand.static <K,V>
java.util.SortedMap<K,V>MapUtils. lazySortedMap(java.util.SortedMap<K,V> map, Transformer<? super K,? extends V> transformerFactory)Returns a "lazy" sorted map whose values will be created on demand.static <E> java.util.Iterator<E>IteratorUtils. objectGraphIterator(E root, Transformer<? super E,? extends E> transformer)Gets an iterator that operates over an object graph.static <K,V,E>
voidMapUtils. populateMap(java.util.Map<K,V> map, java.lang.Iterable<? extends E> elements, Transformer<E,K> keyTransformer, Transformer<E,V> valueTransformer)Populates a Map using the suppliedTransformers to transform the elements into keys and values.static <K,V>
voidMapUtils. populateMap(java.util.Map<K,V> map, java.lang.Iterable<? extends V> elements, Transformer<V,K> keyTransformer)Populates a Map using the suppliedTransformerto transform the elements into keys, using the unaltered element as the value in theMap.static <K,V,E>
voidMapUtils. populateMap(MultiMap<K,V> map, java.lang.Iterable<? extends E> elements, Transformer<E,K> keyTransformer, Transformer<E,V> valueTransformer)Populates a MultiMap using the suppliedTransformers to transform the elements into keys and values.static <K,V>
voidMapUtils. populateMap(MultiMap<K,V> map, java.lang.Iterable<? extends V> elements, Transformer<V,K> keyTransformer)Populates a MultiMap using the suppliedTransformerto transform the elements into keys, using the unaltered element as the value in theMultiMap.static <I,O>
Transformer<I,O>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 <I,O>
Transformer<I,O>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 <I,O>
Transformer<I,O>TransformerUtils. switchTransformer(Predicate<? super I> predicate, Transformer<? super I,? extends O> trueTransformer, Transformer<? super I,? extends O> falseTransformer)Deprecated.static <E> java.lang.StringIterableUtils. toString(java.lang.Iterable<E> iterable, Transformer<? super E,java.lang.String> transformer)Returns a string representation of the elements of the specified iterable.static <E> java.lang.StringIterableUtils. toString(java.lang.Iterable<E> iterable, Transformer<? super E,java.lang.String> transformer, java.lang.String delimiter, java.lang.String prefix, java.lang.String suffix)Returns a string representation of the elements of the specified iterable.static <E> java.lang.StringIteratorUtils. toString(java.util.Iterator<E> iterator, Transformer<? super E,java.lang.String> transformer)Returns a string representation of the elements of the specified iterator.static <E> java.lang.StringIteratorUtils. toString(java.util.Iterator<E> iterator, Transformer<? super E,java.lang.String> transformer, java.lang.String delimiter, java.lang.String prefix, java.lang.String suffix)Returns a string representation of the elements of the specified iterator.static <C> voidCollectionUtils. transform(java.util.Collection<C> collection, Transformer<? super C,? extends C> transformer)Transform the collection by applying a Transformer to each element.<O> FluentIterable<O>FluentIterable. transform(Transformer<? super E,? extends O> transformer)Returns a new FluentIterable whose iterator will return all elements of this iterable transformed by the provided transformer.static <I,O>
java.util.Comparator<I>ComparatorUtils. transformedComparator(java.util.Comparator<O> comparator, Transformer<? super I,? extends O> transformer)Gets a Comparator that passes transformed objects to the given comparator.static <I,O>
java.lang.Iterable<O>IterableUtils. transformedIterable(java.lang.Iterable<I> iterable, Transformer<? super I,? extends O> transformer)Returns a transformed view of the given iterable where all of its elements have been transformed by the provided transformer.static <I,O>
java.util.Iterator<O>IteratorUtils. transformedIterator(java.util.Iterator<? extends I> iterator, Transformer<? super I,? extends O> transform)Gets an iterator that transforms the elements of another iterator.static <E> java.util.List<E>ListUtils. transformedList(java.util.List<E> list, Transformer<? super E,? extends E> transformer)Returns a transformed list backed by the given list.static <K,V>
IterableMap<K,V>MapUtils. transformedMap(java.util.Map<K,V> map, Transformer<? super K,? extends K> keyTransformer, Transformer<? super V,? extends V> valueTransformer)Returns a transformed map backed by the given map.static <K,V>
MultiValuedMap<K,V>MultiMapUtils. transformedMultiValuedMap(MultiValuedMap<K,V> map, Transformer<? super K,? extends K> keyTransformer, Transformer<? super V,? extends V> valueTransformer)Returns aTransformedMultiValuedMapbacked by the given map.static <E> java.util.SortedSet<E>SetUtils. transformedNavigableSet(java.util.NavigableSet<E> set, Transformer<? super E,? extends E> transformer)Returns a transformed navigable set backed by the given navigable set.static <T> Predicate<T>PredicateUtils. transformedPredicate(Transformer<? super T,? extends T> transformer, Predicate<? super T> predicate)Creates a predicate that transforms the input object before passing it to the predicate.static <E> java.util.Set<E>SetUtils. transformedSet(java.util.Set<E> set, Transformer<? super E,? extends E> transformer)Returns a transformed set backed by the given set.static <K,V>
java.util.SortedMap<K,V>MapUtils. transformedSortedMap(java.util.SortedMap<K,V> map, Transformer<? super K,? extends K> keyTransformer, Transformer<? super V,? extends V> valueTransformer)Returns a transformed sorted map backed by the given map.static <E> java.util.SortedSet<E>SetUtils. transformedSortedSet(java.util.SortedSet<E> set, Transformer<? super E,? extends E> transformer)Returns a transformed sorted set backed by the given set.static <E> Bag<E>BagUtils. transformingBag(Bag<E> bag, Transformer<? super E,? extends E> transformer)Returns a transformed bag backed by the given bag.static <E> java.util.Collection<E>CollectionUtils. transformingCollection(java.util.Collection<E> collection, Transformer<? super E,? extends E> transformer)Returns a transformed bag backed by the given collection.static <E> java.util.Queue<E>QueueUtils. transformingQueue(java.util.Queue<E> queue, Transformer<? super E,? extends E> transformer)Returns a transformed queue backed by the given queue.static <E> SortedBag<E>BagUtils. transformingSortedBag(SortedBag<E> bag, Transformer<? super E,? extends E> transformer)Returns a transformed sorted bag backed by the given bag.Method parameters in org.apache.commons.collections4 with type arguments of type Transformer Modifier and Type Method Description static <T> Transformer<T,T>TransformerUtils. chainedTransformer(java.util.Collection<? extends Transformer<? super T,? extends T>> transformers)Create a new Transformer that calls each transformer in turn, passing the result into the next transformer.static <I,O>
Transformer<I,O>TransformerUtils. switchMapTransformer(java.util.Map<I,Transformer<I,O>> objectsAndTransformers)Create a new Transformer that uses the input object as a key to find the transformer to call.static <I,O>
Transformer<I,O>TransformerUtils. switchTransformer(java.util.Map<Predicate<I>,Transformer<I,O>> predicatesAndTransformers)Create a new Transformer that calls one of the transformers depending on the predicates. -
Uses of Transformer in org.apache.commons.collections4.bag
Methods in org.apache.commons.collections4.bag with parameters of type Transformer Modifier and Type Method Description static <E> Bag<E>TransformedBag. transformedBag(Bag<E> bag, Transformer<? super E,? extends E> transformer)Factory method to create a transforming bag that will transform existing contents of the specified bag.static <E> TransformedSortedBag<E>TransformedSortedBag. transformedSortedBag(SortedBag<E> bag, Transformer<? super E,? extends E> transformer)Factory method to create a transforming sorted bag that will transform existing contents of the specified sorted bag.static <E> Bag<E>TransformedBag. transformingBag(Bag<E> bag, Transformer<? super E,? extends E> transformer)Factory method to create a transforming bag.static <E> TransformedSortedBag<E>TransformedSortedBag. transformingSortedBag(SortedBag<E> bag, Transformer<? super E,? extends E> transformer)Factory method to create a transforming sorted bag.Constructors in org.apache.commons.collections4.bag with parameters of type Transformer Constructor Description TransformedBag(Bag<E> bag, Transformer<? super E,? extends E> transformer)Constructor that wraps (not copies).TransformedSortedBag(SortedBag<E> bag, Transformer<? super E,? extends E> transformer)Constructor that wraps (not copies). -
Uses of Transformer in org.apache.commons.collections4.collection
Fields in org.apache.commons.collections4.collection declared as Transformer Modifier and Type Field Description protected Transformer<? super E,? extends E>TransformedCollection. transformerThe transformer to useMethods in org.apache.commons.collections4.collection with parameters of type Transformer Modifier and Type Method Description static <K,C>
IndexedCollection<K,C>IndexedCollection. nonUniqueIndexedCollection(java.util.Collection<C> coll, Transformer<C,K> keyTransformer)Create anIndexedCollectionfor a non-unique index.static <E> TransformedCollection<E>TransformedCollection. transformedCollection(java.util.Collection<E> collection, Transformer<? super E,? extends E> transformer)Factory method to create a transforming collection that will transform existing contents of the specified collection.static <E> TransformedCollection<E>TransformedCollection. transformingCollection(java.util.Collection<E> coll, Transformer<? super E,? extends E> transformer)Factory method to create a transforming collection.static <K,C>
IndexedCollection<K,C>IndexedCollection. uniqueIndexedCollection(java.util.Collection<C> coll, Transformer<C,K> keyTransformer)Create anIndexedCollectionfor a unique index.Constructors in org.apache.commons.collections4.collection with parameters of type Transformer Constructor Description IndexedCollection(java.util.Collection<C> coll, Transformer<C,K> keyTransformer, MultiMap<K,C> map, boolean uniqueIndex)Create aIndexedCollection.TransformedCollection(java.util.Collection<E> coll, Transformer<? super E,? extends E> transformer)Constructor that wraps (not copies). -
Uses of Transformer in org.apache.commons.collections4.comparators
Constructors in org.apache.commons.collections4.comparators with parameters of type Transformer Constructor Description TransformingComparator(Transformer<? super I,? extends O> transformer)Constructs an instance with the given Transformer and aComparableComparator.TransformingComparator(Transformer<? super I,? extends O> transformer, java.util.Comparator<O> decorated)Constructs an instance with the given Transformer and Comparator. -
Uses of Transformer in org.apache.commons.collections4.functors
Classes in org.apache.commons.collections4.functors that implement Transformer Modifier and Type Class Description classChainedTransformer<T>Transformer implementation that chains the specified transformers together.classCloneTransformer<T>Transformer implementation that returns a clone of the input object.classClosureTransformer<T>Transformer implementation that calls a Closure using the input object and then returns the input.classConstantTransformer<I,O>Transformer implementation that returns the same constant each time.classExceptionTransformer<I,O>Transformer implementation that always throws an exception.classFactoryTransformer<I,O>Transformer implementation that calls a Factory and returns the result.classIfTransformer<I,O>Transformer implementation that will call one of two closures based on whether a predicate evaluates as true or false.classInstantiateTransformer<T>Transformer implementation that creates a new object instance by reflection.classInvokerTransformer<I,O>Transformer implementation that creates a new object instance by reflection.classMapTransformer<I,O>Transformer implementation that returns the value held in a specified map using the input parameter as a key.classNOPTransformer<T>Transformer implementation that does nothing.classPredicateTransformer<T>Transformer implementation that calls a Predicate using the input object and then returns the result.classStringValueTransformer<T>Transformer implementation that returns the result of callingString.valueOfon the input object.classSwitchTransformer<I,O>Transformer implementation calls the transformer whose predicate returns true, like a switch statement.Fields in org.apache.commons.collections4.functors declared as Transformer Modifier and Type Field Description static TransformerCloneTransformer. INSTANCESingleton predicate instancestatic TransformerExceptionTransformer. INSTANCESingleton predicate instancestatic TransformerNOPTransformer. INSTANCESingleton predicate instancestatic TransformerConstantTransformer. NULL_INSTANCEReturns null each timeMethods in org.apache.commons.collections4.functors that return Transformer Modifier and Type Method Description static <T> Transformer<T,T>ChainedTransformer. chainedTransformer(java.util.Collection<? extends Transformer<? super T,? extends T>> transformers)Create a new Transformer that calls each transformer in turn, passing the result into the next transformer.static <T> Transformer<T,T>ChainedTransformer. chainedTransformer(Transformer<? super T,? extends T>... transformers)Factory method that performs validation and copies the parameter array.static <T> Transformer<T,T>CloneTransformer. cloneTransformer()Factory returning the singleton instance.static <T> Transformer<T,T>ClosureTransformer. closureTransformer(Closure<? super T> closure)Factory method that performs validation.static <I,O>
Transformer<I,O>ConstantTransformer. constantTransformer(O constantToReturn)Transformer method that performs validation.static <I,O>
Transformer<I,O>ExceptionTransformer. exceptionTransformer()Factory returning the singleton instance.static <I,O>
Transformer<I,O>FactoryTransformer. factoryTransformer(Factory<? extends O> factory)Factory method that performs validation.Transformer<? super I,? extends O>SwitchTransformer. getDefaultTransformer()Gets the default transformer.Transformer<? super I,? extends O>IfTransformer. getFalseTransformer()Gets the transformer used when false.Transformer<? super T,? extends T>TransformedPredicate. getTransformer()Gets the transformer in use.Transformer<? super E,?>TransformerClosure. getTransformer()Gets the transformer.Transformer<? super T,java.lang.Boolean>TransformerPredicate. getTransformer()Gets the transformer.Transformer<? super T,? extends T>[]ChainedTransformer. getTransformers()Gets the transformers.Transformer<? super I,? extends O>[]SwitchTransformer. getTransformers()Gets the transformers.Transformer<? super I,? extends O>IfTransformer. getTrueTransformer()Gets the transformer used when true.static <I,O>
Transformer<I,O>IfTransformer. ifTransformer(Predicate<? super I> predicate, Transformer<? super I,? extends O> trueTransformer, Transformer<? super I,? extends O> falseTransformer)Factory method that performs validation.static <T> Transformer<T,T>IfTransformer. ifTransformer(Predicate<? super T> predicate, Transformer<? super T,? extends T> trueTransformer)Factory method that performs validation.static <T> Transformer<java.lang.Class<? extends T>,T>InstantiateTransformer. instantiateTransformer()Get a typed no-arg instance.static <T> Transformer<java.lang.Class<? extends T>,T>InstantiateTransformer. instantiateTransformer(java.lang.Class<?>[] paramTypes, java.lang.Object[] args)Transformer method that performs validation.static <I,O>
Transformer<I,O>InvokerTransformer. invokerTransformer(java.lang.String methodName)Gets an instance of this transformer calling a specific method with no arguments.static <I,O>
Transformer<I,O>InvokerTransformer. invokerTransformer(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 <I,O>
Transformer<I,O>MapTransformer. mapTransformer(java.util.Map<? super I,? extends O> map)Factory to create the transformer.static <T> Transformer<T,T>NOPTransformer. nopTransformer()Factory returning the singleton instance.static <I,O>
Transformer<I,O>ConstantTransformer. nullTransformer()Get a typed null instance.static <T> Transformer<T,java.lang.Boolean>PredicateTransformer. predicateTransformer(Predicate<? super T> predicate)Factory method that performs validation.static <T> Transformer<T,java.lang.String>StringValueTransformer. stringValueTransformer()Factory returning the singleton instance.static <I,O>
Transformer<I,O>SwitchTransformer. switchTransformer(java.util.Map<? extends Predicate<? super I>,? extends Transformer<? super I,? extends O>> map)Create a new Transformer that calls one of the transformers depending on the predicates.static <I,O>
Transformer<I,O>SwitchTransformer. switchTransformer(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.Methods in org.apache.commons.collections4.functors with parameters of type Transformer Modifier and Type Method Description static <T> Transformer<T,T>ChainedTransformer. chainedTransformer(Transformer<? super T,? extends T>... transformers)Factory method that performs validation and copies the parameter array.static <I,O>
Transformer<I,O>IfTransformer. ifTransformer(Predicate<? super I> predicate, Transformer<? super I,? extends O> trueTransformer, Transformer<? super I,? extends O> falseTransformer)Factory method that performs validation.static <T> Transformer<T,T>IfTransformer. ifTransformer(Predicate<? super T> predicate, Transformer<? super T,? extends T> trueTransformer)Factory method that performs validation.static <I,O>
Transformer<I,O>SwitchTransformer. switchTransformer(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 <T> Predicate<T>TransformedPredicate. transformedPredicate(Transformer<? super T,? extends T> transformer, Predicate<? super T> predicate)Factory to create the predicate.static <E> Closure<E>TransformerClosure. transformerClosure(Transformer<? super E,?> transformer)Factory method that performs validation.static <T> Predicate<T>TransformerPredicate. transformerPredicate(Transformer<? super T,java.lang.Boolean> transformer)Factory to create the predicate.Method parameters in org.apache.commons.collections4.functors with type arguments of type Transformer Modifier and Type Method Description static <T> Transformer<T,T>ChainedTransformer. chainedTransformer(java.util.Collection<? extends Transformer<? super T,? extends T>> transformers)Create a new Transformer that calls each transformer in turn, passing the result into the next transformer.static <I,O>
Transformer<I,O>SwitchTransformer. switchTransformer(java.util.Map<? extends Predicate<? super I>,? extends Transformer<? super I,? extends O>> map)Create a new Transformer that calls one of the transformers depending on the predicates.Constructors in org.apache.commons.collections4.functors with parameters of type Transformer Constructor Description ChainedTransformer(Transformer<? super T,? extends T>... transformers)Constructor that performs no validation.IfTransformer(Predicate<? super I> predicate, Transformer<? super I,? extends O> trueTransformer, Transformer<? super I,? extends O> falseTransformer)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<? super T,? extends T> transformer, Predicate<? super T> predicate)Constructor that performs no validation.TransformerClosure(Transformer<? super E,?> transformer)Constructor that performs no validation.TransformerPredicate(Transformer<? super T,java.lang.Boolean> transformer)Constructor that performs no validation. -
Uses of Transformer in org.apache.commons.collections4.iterators
Methods in org.apache.commons.collections4.iterators that return Transformer Modifier and Type Method Description Transformer<? super I,? extends O>TransformIterator. getTransformer()Gets the transformer this iterator is using.Methods in org.apache.commons.collections4.iterators with parameters of type Transformer Modifier and Type Method Description voidTransformIterator. setTransformer(Transformer<? super I,? extends O> transformer)Sets the transformer this the iterator to use.Constructors in org.apache.commons.collections4.iterators with parameters of type Transformer Constructor Description ObjectGraphIterator(E root, Transformer<? super E,? extends E> transformer)Constructs an ObjectGraphIterator using a root object and transformer.TransformIterator(java.util.Iterator<? extends I> iterator, Transformer<? super I,? extends O> transformer)Constructs a newTransformIteratorthat will use the given iterator and transformer. -
Uses of Transformer in org.apache.commons.collections4.list
Methods in org.apache.commons.collections4.list with parameters of type Transformer Modifier and Type Method Description static <E> LazyList<E>LazyList. lazyList(java.util.List<E> list, Transformer<java.lang.Integer,? extends E> transformer)Transformer method to create a lazily instantiating list.static <E> TransformedList<E>TransformedList. transformedList(java.util.List<E> list, Transformer<? super E,? extends E> transformer)Factory method to create a transforming list that will transform existing contents of the specified list.static <E> TransformedList<E>TransformedList. transformingList(java.util.List<E> list, Transformer<? super E,? extends E> transformer)Factory method to create a transforming list.Constructors in org.apache.commons.collections4.list with parameters of type Transformer Constructor Description LazyList(java.util.List<E> list, Transformer<java.lang.Integer,? extends E> transformer)Constructor that wraps (not copies).TransformedList(java.util.List<E> list, Transformer<? super E,? extends E> transformer)Constructor that wraps (not copies). -
Uses of Transformer in org.apache.commons.collections4.map
Fields in org.apache.commons.collections4.map declared as Transformer Modifier and Type Field Description protected Transformer<? super K,? extends V>LazyMap. factoryThe factory to use to construct elementsprotected Transformer<? super K,? extends K>TransformedMap. keyTransformerThe transformer to use for the keyprotected Transformer<? super V,? extends V>TransformedMap. valueTransformerThe transformer to use for the valueMethods in org.apache.commons.collections4.map with parameters of type Transformer Modifier and Type Method Description static <K,V>
java.util.Map<K,V>DefaultedMap. defaultedMap(java.util.Map<K,V> map, Transformer<? super K,? extends V> transformer)Factory method to create a defaulting map.static <V,K>
LazyMap<K,V>LazyMap. lazyMap(java.util.Map<K,V> map, Transformer<? super K,? extends V> factory)Factory method to create a lazily instantiated map.static <K,V>
LazySortedMap<K,V>LazySortedMap. lazySortedMap(java.util.SortedMap<K,V> map, Transformer<? super K,? extends V> factory)Factory method to create a lazily instantiated sorted map.static <K,V>
TransformedMap<K,V>TransformedMap. transformedMap(java.util.Map<K,V> map, Transformer<? super K,? extends K> keyTransformer, Transformer<? super V,? extends V> valueTransformer)Factory method to create a transforming map that will transform existing contents of the specified map.static <K,V>
TransformedSortedMap<K,V>TransformedSortedMap. transformedSortedMap(java.util.SortedMap<K,V> map, Transformer<? super K,? extends K> keyTransformer, Transformer<? super V,? extends V> valueTransformer)Factory method to create a transforming sorted map that will transform existing contents of the specified map.static <K,V>
TransformedMap<K,V>TransformedMap. transformingMap(java.util.Map<K,V> map, Transformer<? super K,? extends K> keyTransformer, Transformer<? super V,? extends V> valueTransformer)Factory method to create a transforming map.static <K,V>
TransformedSortedMap<K,V>TransformedSortedMap. transformingSortedMap(java.util.SortedMap<K,V> map, Transformer<? super K,? extends K> keyTransformer, Transformer<? super V,? extends V> valueTransformer)Factory method to create a transforming sorted map.Constructors in org.apache.commons.collections4.map with parameters of type Transformer Constructor Description DefaultedMap(java.util.Map<K,V> map, Transformer<? super K,? extends V> defaultValueTransformer)Constructor that wraps (not copies).DefaultedMap(Transformer<? super K,? extends V> defaultValueTransformer)Constructs a new emptyDefaultedMapthat decorates aHashMap.LazyMap(java.util.Map<K,V> map, Transformer<? super K,? extends V> factory)Constructor that wraps (not copies).LazySortedMap(java.util.SortedMap<K,V> map, Transformer<? super K,? extends V> factory)Constructor that wraps (not copies).TransformedMap(java.util.Map<K,V> map, Transformer<? super K,? extends K> keyTransformer, Transformer<? super V,? extends V> valueTransformer)Constructor that wraps (not copies).TransformedSortedMap(java.util.SortedMap<K,V> map, Transformer<? super K,? extends K> keyTransformer, Transformer<? super V,? extends V> valueTransformer)Constructor that wraps (not copies). -
Uses of Transformer in org.apache.commons.collections4.multimap
Methods in org.apache.commons.collections4.multimap with parameters of type Transformer Modifier and Type Method Description static <K,V>
TransformedMultiValuedMap<K,V>TransformedMultiValuedMap. transformedMap(MultiValuedMap<K,V> map, Transformer<? super K,? extends K> keyTransformer, Transformer<? super V,? extends V> valueTransformer)Factory method to create a transforming MultiValuedMap that will transform existing contents of the specified map.static <K,V>
TransformedMultiValuedMap<K,V>TransformedMultiValuedMap. transformingMap(MultiValuedMap<K,V> map, Transformer<? super K,? extends K> keyTransformer, Transformer<? super V,? extends V> valueTransformer)Factory method to create a transforming MultiValuedMap.Constructors in org.apache.commons.collections4.multimap with parameters of type Transformer Constructor Description TransformedMultiValuedMap(MultiValuedMap<K,V> map, Transformer<? super K,? extends K> keyTransformer, Transformer<? super V,? extends V> valueTransformer)Constructor that wraps (not copies). -
Uses of Transformer in org.apache.commons.collections4.queue
Methods in org.apache.commons.collections4.queue with parameters of type Transformer Modifier and Type Method Description static <E> TransformedQueue<E>TransformedQueue. transformedQueue(java.util.Queue<E> queue, Transformer<? super E,? extends E> transformer)Factory method to create a transforming queue that will transform existing contents of the specified queue.static <E> TransformedQueue<E>TransformedQueue. transformingQueue(java.util.Queue<E> queue, Transformer<? super E,? extends E> transformer)Factory method to create a transforming queue.Constructors in org.apache.commons.collections4.queue with parameters of type Transformer Constructor Description TransformedQueue(java.util.Queue<E> queue, Transformer<? super E,? extends E> transformer)Constructor that wraps (not copies). -
Uses of Transformer in org.apache.commons.collections4.set
Methods in org.apache.commons.collections4.set with parameters of type Transformer Modifier and Type Method Description static <E> TransformedNavigableSet<E>TransformedNavigableSet. transformedNavigableSet(java.util.NavigableSet<E> set, Transformer<? super E,? extends E> transformer)Factory method to create a transforming navigable set that will transform existing contents of the specified navigable set.static <E> java.util.Set<E>TransformedSet. transformedSet(java.util.Set<E> set, Transformer<? super E,? extends E> transformer)Factory method to create a transforming set that will transform existing contents of the specified set.static <E> TransformedSortedSet<E>TransformedSortedSet. transformedSortedSet(java.util.SortedSet<E> set, Transformer<? super E,? extends E> transformer)Factory method to create a transforming sorted set that will transform existing contents of the specified sorted set.static <E> TransformedNavigableSet<E>TransformedNavigableSet. transformingNavigableSet(java.util.NavigableSet<E> set, Transformer<? super E,? extends E> transformer)Factory method to create a transforming navigable set.static <E> TransformedSet<E>TransformedSet. transformingSet(java.util.Set<E> set, Transformer<? super E,? extends E> transformer)Factory method to create a transforming set.static <E> TransformedSortedSet<E>TransformedSortedSet. transformingSortedSet(java.util.SortedSet<E> set, Transformer<? super E,? extends E> transformer)Factory method to create a transforming sorted set.Constructors in org.apache.commons.collections4.set with parameters of type Transformer Constructor Description TransformedNavigableSet(java.util.NavigableSet<E> set, Transformer<? super E,? extends E> transformer)Constructor that wraps (not copies).TransformedSet(java.util.Set<E> set, Transformer<? super E,? extends E> transformer)Constructor that wraps (not copies).TransformedSortedSet(java.util.SortedSet<E> set, Transformer<? super E,? extends E> transformer)Constructor that wraps (not copies). -
Uses of Transformer in org.apache.commons.collections4.splitmap
Methods in org.apache.commons.collections4.splitmap with parameters of type Transformer Modifier and Type Method Description static <J,K,U,V>
TransformedSplitMap<J,K,U,V>TransformedSplitMap. transformingMap(java.util.Map<K,V> map, Transformer<? super J,? extends K> keyTransformer, Transformer<? super U,? extends V> valueTransformer)Factory method to create a transforming map.Constructors in org.apache.commons.collections4.splitmap with parameters of type Transformer Constructor Description TransformedSplitMap(java.util.Map<K,V> map, Transformer<? super J,? extends K> keyTransformer, Transformer<? super U,? extends V> valueTransformer)Constructor that wraps (not copies).
-