org.jplate.foundation.util.impl
Class UnsynchronizedLinkedListFactory<V>

java.lang.Object
  extended by org.jplate.foundation.util.impl.UnsynchronizedLinkedListFactory<V>
Type Parameters:
V - The value that will be stored in List's.
All Implemented Interfaces:
java.io.Serializable, FactoryIfc<java.util.List<V>>, ListFactoryIfc<V>

public final class UnsynchronizedLinkedListFactory<V>
extends java.lang.Object
implements ListFactoryIfc<V>

Factory that creates of unsynchronized LinkedList's.

To create an unsynchronized List containing Foo's, perform the following:

final UnsynchronizedLinkedListFactory <Foo> factory =
    new UnsynchronizedLinkedListFactory <Foo> ();

final List list <Foo> = factory.create ();
    
Modifications:
    $Date: 2008-12-02 12:32:45 -0500 (Tue, 02 Dec 2008) $
    $Revision: 479 $
    $Author: sfloess $
    $HeadURL: https://jplate.svn.sourceforge.net/svnroot/jplate/trunk/src/dev/java/org/jplate/foundation/util/impl/UnsynchronizedLinkedListFactory.java $
    

See Also:
LinkedList, List, Serialized Form

Field Summary
private  org.apache.commons.logging.Log _log
          Used for logging.
private static long serialVersionUID
          For serialization purposes.
 
Constructor Summary
UnsynchronizedLinkedListFactory()
          Default constructor only allowed to self and class.
 
Method Summary
 java.util.List<V> create()
          Creates and returns a LinkedList.
 void destroy(java.util.List<V> list)
          Clean a previsously instantiated List.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
For serialization purposes.

See Also:
Constant Field Values

_log

private final transient org.apache.commons.logging.Log _log
Used for logging.

Constructor Detail

UnsynchronizedLinkedListFactory

public UnsynchronizedLinkedListFactory()
Default constructor only allowed to self and class.

Method Detail

create

public java.util.List<V> create()
Creates and returns a LinkedList.

Specified by:
create in interface FactoryIfc<java.util.List<V>>
Returns:
A LinkedList.

destroy

public void destroy(java.util.List<V> list)
Clean a previsously instantiated List. Assuming list is not null, the clear method will be called.

Specified by:
destroy in interface FactoryIfc<java.util.List<V>>
Parameters:
list - The object to clean up.