|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.castor.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(java.lang.Object key)
|
boolean |
containsValue(java.lang.Object value)
In contrast with the design contract of the Map interface this method
has not been implemented and throws a UnsupportedOperationException . |
java.util.Set |
entrySet()
In contrast with the design contract of the Map interface this method
has not been implemented and throws a UnsupportedOperationException . |
java.lang.Object |
get(java.lang.Object key)
|
boolean |
isEmpty()
|
java.util.Set |
keySet()
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
|
void |
putAll(java.util.Map map)
This optional method has not been implemented for IdentityMap instead
it throws a UnsupportedOperationException as defined in the
Map interface. |
java.lang.Object |
remove(java.lang.Object key)
|
int |
size()
|
java.util.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 java.util.Map
Map.clear()
public int size()
size
in interface java.util.Map
Map.size()
public boolean isEmpty()
isEmpty
in interface java.util.Map
Map.isEmpty()
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
put
in interface java.util.Map
Map.put(java.lang.Object, java.lang.Object)
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map
Map.containsKey(java.lang.Object)
public java.lang.Object get(java.lang.Object key)
get
in interface java.util.Map
Map.get(java.lang.Object)
public java.lang.Object remove(java.lang.Object key)
remove
in interface java.util.Map
Map.remove(java.lang.Object)
public java.util.Set keySet()
keySet
in interface java.util.Map
Map.keySet()
public java.util.Set entrySet()
Map
interface this method
has not been implemented and throws a UnsupportedOperationException
.
entrySet
in interface java.util.Map
Map.entrySet()
public java.util.Collection values()
Map
interface this method
has not been implemented and throws a UnsupportedOperationException
.
values
in interface java.util.Map
Map.values()
public boolean containsValue(java.lang.Object value)
Map
interface this method
has not been implemented and throws a UnsupportedOperationException
.
containsValue
in interface java.util.Map
java.util.Map#containsValue()
public void putAll(java.util.Map map)
IdentityMap
instead
it throws a UnsupportedOperationException
as defined in the
Map
interface.
putAll
in interface java.util.Map
java.util.Map#putAll()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |