org.castor.util
Class IdentityMap
java.lang.Object
org.castor.util.IdentityMap
- Map
public final class IdentityMap
extends java.lang.Object
implements Map
An IdentityMap that uses reference-equality instead of object-equality. According
to its special function it violates some design contracts of the Map
interface.
$Revision: 6907 $ $Date: 2006-04-13 10:49:49 -0600 (Thu, 13 Apr 2006) $
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 .
|
containsKey
public boolean containsKey(Object key)
java.util.Map.containsKey(java.lang.Object)
containsValue
public boolean containsValue(Object value)
In contrast with the design contract of the Map
interface this method
has not been implemented and throws a UnsupportedOperationException
.
java.util.Map.containsValue
entrySet
public Set entrySet()
In contrast with the design contract of the Map
interface this method
has not been implemented and throws a UnsupportedOperationException
.
get
public Object get(Object key)
java.util.Map.get(java.lang.Object)
isEmpty
public boolean isEmpty()
keySet
public Set keySet()
put
public Object put(Object key,
Object value)
java.util.Map.put(java.lang.Object, java.lang.Object)
putAll
public void putAll(Map map)
This optional method has not been implemented for IdentityMap
instead
it throws a UnsupportedOperationException
as defined in the
Map
interface.
remove
public Object remove(Object key)
java.util.Map.remove(java.lang.Object)
values
public Collection values()
In contrast with the design contract of the Map
interface this method
has not been implemented and throws a UnsupportedOperationException
.
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com