Uses of Interface
org.apache.commons.collections.Factory
Packages that use Factory
Package
Description
This package contains the interfaces and utilities shared across all the subpackages of this component.
This package contains implementations of the
Closure,
Predicate,
Transformer and
Factory interfaces.
This package contains implementations of the
List interface.-
Uses of Factory in org.apache.commons.collections
Methods in org.apache.commons.collections that return FactoryModifier and TypeMethodDescriptionstatic FactoryFactoryUtils.constantFactory(Object constantToReturn) Creates a Factory that will return the same object each time the factory is used.static FactoryFactoryUtils.exceptionFactory()Gets a Factory that always throws an exception.static FactoryFactoryUtils.instantiateFactory(Class classToInstantiate) Creates a Factory that can create objects of a specific type using a no-args constructor.static FactoryFactoryUtils.instantiateFactory(Class classToInstantiate, Class[] paramTypes, Object[] args) Creates a Factory that can create objects of a specific type using the arguments specified to this method.static FactoryFactoryUtils.nullFactory()Gets a Factory that will return null each time the factory is used.static FactoryFactoryUtils.prototypeFactory(Object prototype) Creates a Factory that will return a clone of the same prototype object each time the factory is used.Methods in org.apache.commons.collections with parameters of type FactoryModifier and TypeMethodDescriptionstatic TransformerTransformerUtils.asTransformer(Factory factory) Creates a Transformer that calls a Factory each time the transformer is used.static ListReturns a "lazy" list whose elements will be created on demand.static MapReturns a "lazy" map whose values will be created on demand.static SortedMapMapUtils.lazySortedMap(SortedMap map, Factory factory) Returns a "lazy" sorted map whose values will be created on demand.static MapMapUtils.multiValueMap(Map map, Factory collectionFactory) Creates a multi-value map backed by the given map which returns collections created by the specified collection factory. -
Uses of Factory in org.apache.commons.collections.functors
Classes in org.apache.commons.collections.functors that implement FactoryModifier and TypeClassDescriptionclassFactory implementation that returns the same constant each time.final classFactory implementation that always throws an exception.classFactory implementation that creates a new object instance by reflection.Fields in org.apache.commons.collections.functors declared as FactoryModifier and TypeFieldDescriptionstatic final FactoryExceptionFactory.INSTANCESingleton predicate instancestatic final FactoryConstantFactory.NULL_INSTANCEReturns null each timeMethods in org.apache.commons.collections.functors that return FactoryModifier and TypeMethodDescriptionFactoryTransformer.getFactory()Gets the factory.static FactoryConstantFactory.getInstance(Object constantToReturn) Factory method that performs validation.static FactoryExceptionFactory.getInstance()Factory returning the singleton instance.static FactoryInstantiateFactory.getInstance(Class classToInstantiate, Class[] paramTypes, Object[] args) Factory method that performs validation.static FactoryPrototypeFactory.getInstance(Object prototype) Factory method that performs validation.Methods in org.apache.commons.collections.functors with parameters of type FactoryModifier and TypeMethodDescriptionstatic TransformerFactoryTransformer.getInstance(Factory factory) Factory method that performs validation.Constructors in org.apache.commons.collections.functors with parameters of type FactoryModifierConstructorDescriptionFactoryTransformer(Factory factory) Constructor that performs no validation. -
Uses of Factory in org.apache.commons.collections.list
Fields in org.apache.commons.collections.list declared as FactoryModifier and TypeFieldDescriptionprotected final FactoryLazyList.factoryThe factory to use to lazily instantiate the objectsMethods in org.apache.commons.collections.list with parameters of type FactoryModifier and TypeMethodDescriptionstatic ListFactory method to create a lazily instantiating list.Constructors in org.apache.commons.collections.list with parameters of type Factory -
Uses of Factory in org.apache.commons.collections.map
Methods in org.apache.commons.collections.map with parameters of type FactoryModifier and TypeMethodDescriptionstatic MapFactory method to create a defaulting map.static MapFactory method to create a lazily instantiated map.static SortedMapFactory method to create a lazily instantiated sorted map.static MultiValueMapCreates a map which decorates the givenmapand creates the value collections using the suppliedcollectionFactory.Constructors in org.apache.commons.collections.map with parameters of type FactoryModifierConstructorDescriptionprotectedConstructor that wraps (not copies).protectedLazySortedMap(SortedMap map, Factory factory) Constructor that wraps (not copies).protectedMultiValueMap(Map map, Factory collectionFactory) Creates a MultiValueMap which decorates the givenmapand creates the value collections using the suppliedcollectionFactory.