|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jplate.foundation.util.impl.SynchronizedLinkedListFactory<V>
V
- The value type that will be stored in List
's.public final class SynchronizedLinkedListFactory<V>
Factory that creates synchronized List
's backed by
LinkedList
's.
Foo's
, perform the
following:
final SynchronizedLinkedListFactory <Foo> factory = new SynchronizedLinkedListFactory <Foo> (); final List sList <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/SynchronizedLinkedListFactory.java $
LinkedList
,
List
,
Serialized FormField Summary | |
---|---|
private org.apache.commons.logging.Log |
_log
Used for logging. |
private static long |
serialVersionUID
For serialization purposes. |
Constructor Summary | |
---|---|
SynchronizedLinkedListFactory()
Default constructor. |
Method Summary | |
---|---|
java.util.List<V> |
create()
Creates and returns a synchronized List backed by 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 |
---|
private static final long serialVersionUID
private final transient org.apache.commons.logging.Log _log
Constructor Detail |
---|
public SynchronizedLinkedListFactory()
Method Detail |
---|
public java.util.List<V> create()
List
backed by a
LinkedList
.
create
in interface FactoryIfc<java.util.List<V>>
List
backed by a
LinkedList
.Collections.synchronizedList(java.util.List)
,
LinkedList
,
List
public void destroy(java.util.List<V> list)
List
. Assuming
list
is not null
, the clear
method
will be called.
destroy
in interface FactoryIfc<java.util.List<V>>
list
- The object to clean up.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |