Uses of Interface
org.apache.commons.collections.Factory

Packages that use Factory
org.apache.commons.collections This package contains the interfaces and utilities shared across all the subpackages of this component. 
org.apache.commons.collections.functors This package contains implementations of the Closure, Predicate, Transformer and Factory interfaces. 
org.apache.commons.collections.list This package contains implementations of the List interface. 
org.apache.commons.collections.map This package contains implementations of the Map, IterableMap, OrderedMap and SortedMap interfaces. 
 

Uses of Factory in org.apache.commons.collections
 

Methods in org.apache.commons.collections that return Factory
static
<T> Factory<T>
FactoryUtils.constantFactory(T 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
<T> Factory<T>
FactoryUtils.instantiateFactory(Class<T> classToInstantiate)
          Creates a Factory that can create objects of a specific type using a no-args constructor.
static
<T> Factory<T>
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 Factory FactoryUtils.nullFactory()
          Gets a Factory that will return null each time the factory is used.
static
<T> Factory<T>
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.collections with parameters of type Factory
static
<T> Transformer<Object,T>
TransformerUtils.asTransformer(Factory<T> factory)
          Creates a Transformer that calls a Factory each time the transformer is used.
static
<E> List<E>
ListUtils.lazyList(List<E> list, Factory<? extends E> factory)
          Returns a "lazy" list whose elements will be created on demand.
static
<K,V> Map<K,V>
MapUtils.lazyMap(Map<K,V> map, Factory<V> factory)
          Returns a "lazy" map whose values will be created on demand.
static
<K,V> SortedMap<K,V>
MapUtils.lazySortedMap(SortedMap<K,V> map, Factory<V> factory)
          Returns a "lazy" sorted map whose values will be created on demand.
 

Uses of Factory in org.apache.commons.collections.functors
 

Classes in org.apache.commons.collections.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.collections.functors declared as Factory
static Factory ExceptionFactory.INSTANCE
          Singleton predicate instance
static Factory ConstantFactory.NULL_INSTANCE
          Returns null each time
 

Methods in org.apache.commons.collections.functors that return Factory
 Factory<T> FactoryTransformer.getFactory()
          Gets the factory.
static Factory ExceptionFactory.getInstance()
          Factory returning the singleton instance.
static
<T> Factory<T>
InstantiateFactory.getInstance(Class<T> classToInstantiate, Class[] paramTypes, Object[] args)
          Factory method that performs validation.
static
<T> Factory<T>
PrototypeFactory.getInstance(T prototype)
          Factory method that performs validation.
static
<T> Factory<T>
ConstantFactory.getInstance(T constantToReturn)
          Factory method that performs validation.
 

Methods in org.apache.commons.collections.functors with parameters of type Factory
static
<T> Transformer<Object,T>
FactoryTransformer.getInstance(Factory<T> factory)
          Factory method that performs validation.
 

Constructors in org.apache.commons.collections.functors with parameters of type Factory
FactoryTransformer(Factory<T> factory)
          Constructor that performs no validation.
 

Uses of Factory in org.apache.commons.collections.list
 

Fields in org.apache.commons.collections.list declared as Factory
protected  Factory<? extends E> LazyList.factory
          The factory to use to lazily instantiate the objects
 

Methods in org.apache.commons.collections.list with parameters of type Factory
static
<E> List<E>
LazyList.decorate(List<E> list, Factory<? extends E> factory)
          Factory method to create a lazily instantiating list.
 

Constructors in org.apache.commons.collections.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.collections.map
 

Fields in org.apache.commons.collections.map declared as Factory
protected  Factory<V> LazyMap.factory
          The factory to use to construct elements
 

Methods in org.apache.commons.collections.map with parameters of type Factory
static
<K,V> Map<K,V>
LazyMap.decorate(Map<K,V> map, Factory<V> factory)
          Factory method to create a lazily instantiated map.
static
<K,V> SortedMap<K,V>
LazySortedMap.decorate(SortedMap<K,V> map, Factory<V> factory)
          Factory method to create a lazily instantiated sorted map.
 

Constructors in org.apache.commons.collections.map with parameters of type Factory
LazyMap(Map<K,V> map, Factory<V> factory)
          Constructor that wraps (not copies).
LazySortedMap(SortedMap<K,V> map, Factory<V> factory)
          Constructor that wraps (not copies).
 



Copyright © 2005-2005 Apache Software Foundation, Matt Hall, John Watkinson. All Rights Reserved.