org.nakedobjects.runtime.persistence.adaptermanager.internal
Class PojoAdapterHashMap
java.lang.Object
org.nakedobjects.runtime.persistence.adaptermanager.internal.PojoAdapterHashMap
- All Implemented Interfaces:
- java.lang.Iterable<NakedObject>, Component, Resettable, SessionScopedComponent, DebugInfo, PojoAdapterMap
public class PojoAdapterHashMap
- extends java.lang.Object
- implements PojoAdapterMap
TODO: an alternative might be to use IdentityMap.
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_POJO_ADAPTER_MAP_SIZE
public static final int DEFAULT_POJO_ADAPTER_MAP_SIZE
- See Also:
- Constant Field Values
adapterByPojoMap
protected final java.util.Map<java.lang.Object,NakedObject> adapterByPojoMap
PojoAdapterHashMap
public PojoAdapterHashMap()
PojoAdapterHashMap
public PojoAdapterHashMap(int capacity)
finalize
protected void finalize()
throws java.lang.Throwable
- Overrides:
finalize in class java.lang.Object
- Throws:
java.lang.Throwable
open
public void open()
- Specified by:
open in interface SessionScopedComponent
close
public void close()
- Specified by:
close in interface SessionScopedComponent
reset
public void reset()
- Specified by:
reset in interface Resettable
add
public void add(java.lang.Object pojo,
NakedObject adapter)
- Specified by:
add in interface PojoAdapterMap
remove
public void remove(NakedObject object)
- Specified by:
remove in interface PojoAdapterMap
containsPojo
public boolean containsPojo(java.lang.Object pojo)
- Specified by:
containsPojo in interface PojoAdapterMap
getAdapter
public NakedObject getAdapter(java.lang.Object pojo)
- Specified by:
getAdapter in interface PojoAdapterMap
iterator
public java.util.Iterator<NakedObject> iterator()
- Specified by:
iterator in interface java.lang.Iterable<NakedObject>
debugData
public void debugData(DebugString debug)
- Specified by:
debugData in interface DebugInfo
debugTitle
public java.lang.String debugTitle()
- Specified by:
debugTitle in interface DebugInfo
Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.