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 Factory
FactoryUtils.constantFactory
(Object constantToReturn) Creates a Factory that will return the same object each time the factory is used.static Factory
FactoryUtils.exceptionFactory()
Gets a Factory that always throws an exception.static Factory
FactoryUtils.instantiateFactory
(Class classToInstantiate) Creates a Factory that can create objects of a specific type using a no-args constructor.static Factory
FactoryUtils.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 Factory
FactoryUtils.nullFactory()
Gets a Factory that will return null each time the factory is used.static Factory
FactoryUtils.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 Transformer
TransformerUtils.asTransformer
(Factory factory) Creates a Transformer that calls a Factory each time the transformer is used.static List
Returns a "lazy" list whose elements will be created on demand.static Map
Returns a "lazy" map whose values will be created on demand.static SortedMap
MapUtils.lazySortedMap
(SortedMap map, Factory factory) Returns a "lazy" sorted map whose values will be created on demand.static Map
MapUtils.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 TypeClassDescriptionclass
Factory implementation that returns the same constant each time.final class
Factory implementation that always throws an exception.class
Factory implementation that creates a new object instance by reflection.Fields in org.apache.commons.collections.functors declared as FactoryModifier and TypeFieldDescriptionstatic final Factory
ExceptionFactory.INSTANCE
Singleton predicate instancestatic final Factory
ConstantFactory.NULL_INSTANCE
Returns null each timeMethods in org.apache.commons.collections.functors that return FactoryModifier and TypeMethodDescriptionFactoryTransformer.getFactory()
Gets the factory.static Factory
ConstantFactory.getInstance
(Object constantToReturn) Factory method that performs validation.static Factory
ExceptionFactory.getInstance()
Factory returning the singleton instance.static Factory
InstantiateFactory.getInstance
(Class classToInstantiate, Class[] paramTypes, Object[] args) Factory method that performs validation.static Factory
PrototypeFactory.getInstance
(Object prototype) Factory method that performs validation.Methods in org.apache.commons.collections.functors with parameters of type FactoryModifier and TypeMethodDescriptionstatic Transformer
FactoryTransformer.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 Factory
LazyList.factory
The factory to use to lazily instantiate the objectsMethods in org.apache.commons.collections.list with parameters of type FactoryModifier and TypeMethodDescriptionstatic List
Factory 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 Map
Factory method to create a defaulting map.static Map
Factory method to create a lazily instantiated map.static SortedMap
Factory method to create a lazily instantiated sorted map.static MultiValueMap
Creates a map which decorates the givenmap
and creates the value collections using the suppliedcollectionFactory
.Constructors in org.apache.commons.collections.map with parameters of type FactoryModifierConstructorDescriptionprotected
Constructor that wraps (not copies).protected
LazySortedMap
(SortedMap map, Factory factory) Constructor that wraps (not copies).protected
MultiValueMap
(Map map, Factory collectionFactory) Creates a MultiValueMap which decorates the givenmap
and creates the value collections using the suppliedcollectionFactory
.