org.omnaest.utils.structure.element.factory.concrete
Class ArrayListFactory<E>
java.lang.Object
org.omnaest.utils.structure.element.factory.concrete.ArrayListFactory<E>
- Type Parameters:
E -
- All Implemented Interfaces:
- Serializable, Factory<List<E>>, FactoryTypeAware<List<E>>
public class ArrayListFactory<E>
- extends Object
- implements FactoryTypeAware<List<E>>, Serializable
FactoryTypeAware creating new instances of ArrayList
- Author:
- Omnaest
- See Also:
- Serialized Form
ArrayListFactory
public ArrayListFactory()
newInstance
public List<E> newInstance()
- Description copied from interface:
Factory
- Factory method for an element
- Specified by:
newInstance in interface Factory<List<E>>
- Returns:
getInstanceType
public Class<?> getInstanceType()
- Description copied from interface:
FactoryTypeAware
- Returns the
Class type the Factory.newInstance() method produces
- Specified by:
getInstanceType in interface FactoryTypeAware<List<E>>
- Returns:
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2013. All Rights Reserved.