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

- Packages that use Factory
  Package | Description
  --- | ---
  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
    Modifier and Type | Method and Description
    --- | ---
    `static 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 Factory
    Modifier and Type | Method and Description
    --- | ---
    `static Transformer` | TransformerUtils.`asTransformer(Factory factory)` Creates a Transformer that calls a Factory each time the transformer is used.
    `static List` | ListUtils.`lazyList(List list, Factory factory)` Returns a "lazy" list whose elements will be created on demand.
    `static Map` | MapUtils.`lazyMap(Map map, Factory factory)` 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 Factory
    Modifier and Type | Class and Description
    --- | ---
    `class` | `ConstantFactory` Factory implementation that returns the same constant each time.
    `class` | `ExceptionFactory` Factory implementation that always throws an exception.
    `class` | `InstantiateFactory` Factory implementation that creates a new object instance by reflection.

    Fields in org.apache.commons.collections.functors declared as Factory
    Modifier and Type | Field and Description
    --- | ---
    `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
    Modifier and Type | Method and Description
    --- | ---
    `Factory` | FactoryTransformer.`getFactory()` Gets the factory.
    `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` | ConstantFactory.`getInstance(Object constantToReturn)` 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 Factory
    Modifier and Type | Method and Description
    --- | ---
    `static Transformer` | FactoryTransformer.`getInstance(Factory factory)` Factory method that performs validation.

    Constructors in org.apache.commons.collections.functors with parameters of type Factory
    Constructor and Description
    `FactoryTransformer(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 Factory
    Modifier and Type | Field and Description
    --- | ---
    `protected Factory` | LazyList.`factory` The factory to use to lazily instantiate the objects

    Methods in org.apache.commons.collections.list with parameters of type Factory
    Modifier and Type | Method and Description
    --- | ---
    `static List` | LazyList.`decorate(List list, Factory factory)` Factory method to create a lazily instantiating list.

    Constructors in org.apache.commons.collections.list with parameters of type Factory
    Constructor and Description
    `LazyList(List list, Factory factory)` Constructor that wraps (not copies).

  - ### Uses of Factory in org.apache.commons.collections.map

    Methods in org.apache.commons.collections.map with parameters of type Factory
    Modifier and Type | Method and Description
    --- | ---
    `static Map` | DefaultedMap.`decorate(Map map, Factory factory)` Factory method to create a defaulting map.
    `static Map` | LazyMap.`decorate(Map map, Factory factory)` Factory method to create a lazily instantiated map.
    `static MultiValueMap` | MultiValueMap.`decorate(Map map, Factory collectionFactory)` Creates a map which decorates the given `map` and creates the value collections using the supplied `collectionFactory`.
    `static SortedMap` | LazySortedMap.`decorate(SortedMap map, Factory factory)` Factory method to create a lazily instantiated sorted map.

    Constructors in org.apache.commons.collections.map with parameters of type Factory
    Constructor and Description
    `LazyMap(Map map, Factory factory)` Constructor that wraps (not copies).
    `LazySortedMap(SortedMap map, Factory factory)` Constructor that wraps (not copies).
    `MultiValueMap(Map map, Factory collectionFactory)` Creates a MultiValueMap which decorates the given `map` and creates the value collections using the supplied `collectionFactory`.

Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.