Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.javatools.util
Class Maps.StrongEntry<K,V>

java.lang.Object
  extended by oracle.javatools.util.Maps.StrongEntry<K,V>
Type Parameters:
K - The type of key stored by the entry.
V - The type of value stored by the entry.
All Implemented Interfaces:
java.util.Map.Entry<K,V>, Maps.BaseEntry<K,V>
Enclosing class:
Maps

public static class Maps.StrongEntry<K,V>
extends java.lang.Object
implements Maps.BaseEntry<K,V>

The default Maps.BaseEntry implementation.

See Also:
Maps.StrongHashMap

Constructor Summary
protected Maps.StrongEntry(int hash, K key, V value, Maps.BaseEntry<K,V> next)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 K getKey()
           
 Maps.BaseEntry<K,V> getNext()
          Gets the next entry in the containing hash chain of the containing map.
 V getValue()
           
 int hashCode()
           
 boolean isMutable()
          Gets whether this entry is mutable, in particular whether Map.Entry.setValue(V) is supported.
 int keyHashCode()
          Gets the hash code of the key in this entry.
 void setNext(Maps.BaseEntry<K,V> next)
          Sets the next entry in the containing hash chain of the containing map.
 V setValue(V newValue)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Maps.StrongEntry

protected Maps.StrongEntry(int hash,
                           K key,
                           V value,
                           Maps.BaseEntry<K,V> next)
Method Detail

getKey

public K getKey()
Specified by:
getKey in interface java.util.Map.Entry<K,V>

getValue

public V getValue()
Specified by:
getValue in interface java.util.Map.Entry<K,V>

setValue

public V setValue(V newValue)
Specified by:
setValue in interface java.util.Map.Entry<K,V>

getNext

public Maps.BaseEntry<K,V> getNext()
Description copied from interface: Maps.BaseEntry
Gets the next entry in the containing hash chain of the containing map.

Specified by:
getNext in interface Maps.BaseEntry<K,V>

setNext

public void setNext(Maps.BaseEntry<K,V> next)
Description copied from interface: Maps.BaseEntry
Sets the next entry in the containing hash chain of the containing map.

Specified by:
setNext in interface Maps.BaseEntry<K,V>

keyHashCode

public int keyHashCode()
Description copied from interface: Maps.BaseEntry
Gets the hash code of the key in this entry.

Specified by:
keyHashCode in interface Maps.BaseEntry<K,V>

isMutable

public boolean isMutable()
Description copied from interface: Maps.BaseEntry
Gets whether this entry is mutable, in particular whether Map.Entry.setValue(V) is supported.

Specified by:
isMutable in interface Maps.BaseEntry<K,V>

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.Map.Entry<K,V>
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.Map.Entry<K,V>
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

Copyright © 1997, 2011, Oracle. All rights reserved.