|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jplate.foundation.util.impl.UnsynchronizedHashMapFactory<K,V>
K - The key type stored in HashMap.V - represents the value type stored in HashMap.public final class UnsynchronizedHashMapFactory<K,V>
Factory that creates unsynchronized HashMap's.
Foo and value Bar,
perform the following:
final UnsynchronizedHashMapFactory <Foo, Bar> factory =
new UnsynchronizedHashMapFactory <Foo, Bar> ();
final Map map <Foo, Bar> = 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/UnsynchronizedHashMapFactory.java $
HashMap,
Map,
Serialized Form| Field Summary | |
|---|---|
private org.apache.commons.logging.Log |
_log
Used for logging. |
private static long |
serialVersionUID
For serialization purposes. |
| Constructor Summary | |
|---|---|
UnsynchronizedHashMapFactory()
Default constructor only allowed to self and class. |
|
| Method Summary | |
|---|---|
java.util.Map<K,V> |
create()
Creates and returns a HashMap. |
void |
destroy(java.util.Map<K,V> map)
Cleanup a previsously instantiated Map. |
| 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 UnsynchronizedHashMapFactory()
| Method Detail |
|---|
public java.util.Map<K,V> create()
HashMap.
create in interface FactoryIfc<java.util.Map<K,V>>HashMap.public void destroy(java.util.Map<K,V> map)
Map. Assuming
map is not null, the clear method
will be called.
destroy in interface FactoryIfc<java.util.Map<K,V>>map - The object to clean up.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||