|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.castor.core.util.IdentityMap
public final class IdentityMap
An IdentityMap that uses reference-equality instead of object-equality. According
to its special function it violates some design contracts of the Map
interface.
| Nested Class Summary | |
|---|---|
class |
IdentityMap.Entry
An entry of the IdentityMap. |
| Constructor Summary | |
|---|---|
IdentityMap()
|
|
| Method Summary | |
|---|---|
void |
clear()
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
In contrast with the design contract of the Map interface this method
has not been implemented and throws a UnsupportedOperationException. |
Set |
entrySet()
In contrast with the design contract of the Map interface this method
has not been implemented and throws a UnsupportedOperationException. |
Object |
get(Object key)
|
boolean |
isEmpty()
|
Set |
keySet()
|
Object |
put(Object key,
Object value)
|
void |
putAll(Map map)
This optional method has not been implemented for IdentityMap instead
it throws a UnsupportedOperationException as defined in the
Map interface. |
Object |
remove(Object key)
|
int |
size()
|
Collection |
values()
In contrast with the design contract of the Map interface this method
has not been implemented and throws a UnsupportedOperationException. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public IdentityMap()
| Method Detail |
|---|
public void clear()
clear in interface MapMap.clear()public int size()
size in interface MapMap.size()public boolean isEmpty()
isEmpty in interface MapMap.isEmpty()
public Object put(Object key,
Object value)
put in interface MapMap.put(java.lang.Object, java.lang.Object)public boolean containsKey(Object key)
containsKey in interface MapMap.containsKey(java.lang.Object)public Object get(Object key)
get in interface MapMap.get(java.lang.Object)public Object remove(Object key)
remove in interface MapMap.remove(java.lang.Object)public Set keySet()
keySet in interface MapMap.keySet()public Set entrySet()
Map interface this method
has not been implemented and throws a UnsupportedOperationException.
entrySet in interface MapMap.entrySet()public Collection values()
Map interface this method
has not been implemented and throws a UnsupportedOperationException.
values in interface MapMap.values()public boolean containsValue(Object value)
Map interface this method
has not been implemented and throws a UnsupportedOperationException.
containsValue in interface MapMap.containsValue(java.lang.Object)public void putAll(Map map)
IdentityMap instead
it throws a UnsupportedOperationException as defined in the
Map interface.
putAll in interface MapMap.putAll(java.util.Map extends K, ? extends V>)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||