|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Factory | |
---|---|
org.apache.commons.collections4 | This package contains the interfaces and utilities shared across all the subpackages of this component. |
org.apache.commons.collections4.functors | This package contains implementations of the
Closure ,
Predicate ,
Transformer and
Factory interfaces. |
org.apache.commons.collections4.list | This package contains implementations of the List interface. |
org.apache.commons.collections4.map | This package contains implementations of the Map ,
IterableMap ,
OrderedMap and
SortedMap interfaces. |
Uses of Factory in org.apache.commons.collections4 |
---|
Methods in org.apache.commons.collections4 that return Factory | ||
---|---|---|
static
|
FactoryUtils.constantFactory(T constantToReturn)
Creates a Factory that will return the same object each time the factory is used. |
|
static
|
FactoryUtils.exceptionFactory()
Gets a Factory that always throws an exception. |
|
static
|
FactoryUtils.instantiateFactory(Class<T> classToInstantiate)
Creates a Factory that can create objects of a specific type using a no-args constructor. |
|
static
|
FactoryUtils.instantiateFactory(Class<T> classToInstantiate,
Class<?>[] paramTypes,
Object[] args)
Creates a Factory that can create objects of a specific type using the arguments specified to this method. |
|
static
|
FactoryUtils.nullFactory()
Gets a Factory that will return null each time the factory is used. |
|
static
|
FactoryUtils.prototypeFactory(T 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.collections4 with parameters of type Factory | ||
---|---|---|
static
|
TransformerUtils.asTransformer(Factory<? extends O> factory)
Creates a Transformer that calls a Factory each time the transformer is used. |
|
static
|
ListUtils.lazyList(List<E> list,
Factory<? extends E> factory)
Returns a "lazy" list whose elements will be created on demand. |
|
static
|
MapUtils.lazyMap(Map<K,V> map,
Factory<? extends V> factory)
Returns a "lazy" map whose values will be created on demand. |
|
static
|
MapUtils.lazySortedMap(SortedMap<K,V> map,
Factory<? extends V> factory)
Returns a "lazy" sorted map whose values will be created on demand. |
|
static
|
MapUtils.multiValueMap(Map<K,C> map,
Factory<C> 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.collections4.functors |
---|
Classes in org.apache.commons.collections4.functors that implement Factory | |
---|---|
class |
ConstantFactory<T>
Factory implementation that returns the same constant each time. |
class |
ExceptionFactory<T>
Factory implementation that always throws an exception. |
class |
InstantiateFactory<T>
Factory implementation that creates a new object instance by reflection. |
Fields in org.apache.commons.collections4.functors declared as Factory | |
---|---|
static Factory<Object> |
ExceptionFactory.INSTANCE
Singleton predicate instance |
static Factory<Object> |
ConstantFactory.NULL_INSTANCE
Returns null each time |
Methods in org.apache.commons.collections4.functors that return Factory | ||
---|---|---|
static
|
ConstantFactory.constantFactory(T constantToReturn)
Factory method that performs validation. |
|
static
|
ExceptionFactory.exceptionFactory()
Factory returning the singleton instance. |
|
Factory<? extends O> |
FactoryTransformer.getFactory()
Gets the factory. |
|
static
|
InstantiateFactory.instantiateFactory(Class<T> classToInstantiate,
Class<?>[] paramTypes,
Object[] args)
Factory method that performs validation. |
|
static
|
PrototypeFactory.prototypeFactory(T prototype)
Factory method that performs validation. |
Methods in org.apache.commons.collections4.functors with parameters of type Factory | ||
---|---|---|
static
|
FactoryTransformer.factoryTransformer(Factory<? extends O> factory)
Factory method that performs validation. |
Constructors in org.apache.commons.collections4.functors with parameters of type Factory | |
---|---|
FactoryTransformer(Factory<? extends O> factory)
Constructor that performs no validation. |
Uses of Factory in org.apache.commons.collections4.list |
---|
Methods in org.apache.commons.collections4.list with parameters of type Factory | ||
---|---|---|
static
|
LazyList.lazyList(List<E> list,
Factory<? extends E> factory)
Factory method to create a lazily instantiating list. |
Constructors in org.apache.commons.collections4.list with parameters of type Factory | |
---|---|
LazyList(List<E> list,
Factory<? extends E> factory)
Constructor that wraps (not copies). |
Uses of Factory in org.apache.commons.collections4.map |
---|
Methods in org.apache.commons.collections4.map with parameters of type Factory | ||
---|---|---|
static
|
DefaultedMap.defaultedMap(Map<K,V> map,
Factory<? extends V> factory)
Factory method to create a defaulting map. |
|
static
|
LazyMap.lazyMap(Map<K,V> map,
Factory<? extends V> factory)
Factory method to create a lazily instantiated map. |
|
static
|
LazySortedMap.lazySortedMap(SortedMap<K,V> map,
Factory<? extends V> factory)
Factory method to create a lazily instantiated sorted map. |
|
static
|
MultiValueMap.multiValueMap(Map<K,? super C> map,
Factory<C> collectionFactory)
Creates a map which decorates the given map and
creates the value collections using the supplied collectionFactory . |
Constructors in org.apache.commons.collections4.map with parameters of type Factory | |
---|---|
LazyMap(Map<K,V> map,
Factory<? extends V> factory)
Constructor that wraps (not copies). |
|
LazySortedMap(SortedMap<K,V> map,
Factory<? extends V> factory)
Constructor that wraps (not copies). |
|
MultiValueMap(Map<K,? super C> map,
Factory<C> collectionFactory)
Creates a MultiValueMap which decorates the given map and
creates the value collections using the supplied collectionFactory . |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |