Class IdentityMap
java.lang.Object
org.castor.core.util.IdentityMap
- All Implemented Interfaces:
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.- Since:
- 0.9.9
- Version:
- $Revision: 7491 $ $Date: 2006-04-13 10:49:49 -0600 (Thu, 13 Apr 2006) $
- Author:
- Ralf Joachim
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) In contrast with the design contract of theMapinterface this method has not been implemented and throws aUnsupportedOperationException.entrySet()In contrast with the design contract of theMapinterface this method has not been implemented and throws aUnsupportedOperationException.booleanisEmpty()keySet()voidThis optional method has not been implemented forIdentityMapinstead it throws aUnsupportedOperationExceptionas defined in theMapinterface.intsize()values()In contrast with the design contract of theMapinterface this method has not been implemented and throws aUnsupportedOperationException.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
IdentityMap
public IdentityMap()
-
-
Method Details
-
clear
-
size
-
isEmpty
-
put
-
containsKey
- Specified by:
containsKeyin interfaceMap- See Also:
-
get
-
remove
-
keySet
-
entrySet
-
values
In contrast with the design contract of theMapinterface this method has not been implemented and throws aUnsupportedOperationException. -
containsValue
In contrast with the design contract of theMapinterface this method has not been implemented and throws aUnsupportedOperationException.- Specified by:
containsValuein interfaceMap- See Also:
-
putAll
-