public final class IdentityMap extends Object implements Map
Map
interface.Modifier and Type | Class and Description |
---|---|
class |
IdentityMap.Entry
An entry of the
IdentityMap . |
Constructor and Description |
---|
IdentityMap() |
Modifier and Type | Method and Description |
---|---|
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 . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public void clear()
clear
in interface Map
Map.clear()
public int size()
size
in interface Map
Map.size()
public boolean isEmpty()
isEmpty
in interface Map
Map.isEmpty()
public Object put(Object key, Object value)
put
in interface Map
Map.put(java.lang.Object, java.lang.Object)
public boolean containsKey(Object key)
containsKey
in interface Map
Map.containsKey(java.lang.Object)
public Object get(Object key)
get
in interface Map
Map.get(java.lang.Object)
public Object remove(Object key)
remove
in interface Map
Map.remove(java.lang.Object)
public Set keySet()
keySet
in interface Map
Map.keySet()
public Set entrySet()
Map
interface this method
has not been implemented and throws a UnsupportedOperationException
.
entrySet
in interface Map
Map.entrySet()
public Collection values()
Map
interface this method
has not been implemented and throws a UnsupportedOperationException
.
values
in interface Map
Map.values()
public boolean containsValue(Object value)
Map
interface this method
has not been implemented and throws a UnsupportedOperationException
.
containsValue
in interface Map
Map.containsValue(java.lang.Object)
public void putAll(Map map)
IdentityMap
instead
it throws a UnsupportedOperationException
as defined in the
Map
interface.
putAll
in interface Map
Map.putAll(java.util.Map<? extends K, ? extends V>)
Copyright © 2015. All rights reserved.