org.omnaest.utils.structure.element.factory.concrete
Class ArrayListFactory<E>

java.lang.Object
  extended by 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

Constructor Summary
ArrayListFactory()
           
 
Method Summary
 Class<?> getInstanceType()
          Returns the Class type the Factory.newInstance() method produces
 List<E> newInstance()
          Factory method for an element
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArrayListFactory

public ArrayListFactory()
Method Detail

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.