java.util
Class IdentityHashMap.IdentityHashMapEntry<K,V>
java.lang.Object
java.util.MapEntry<K,V>
java.util.IdentityHashMap.IdentityHashMapEntry<K,V>
- All Implemented Interfaces:
- Cloneable, Map.Entry<K,V>
- Enclosing class:
- IdentityHashMap<K,V>
static class IdentityHashMap.IdentityHashMapEntry<K,V>
- extends MapEntry<K,V>
|
Method Summary |
Object |
clone()
Returns a new instance of the same class as the receiver, whose slots
have been filled in with the values in the slots of the receiver. |
boolean |
equals(Object object)
Compares the argument to the receiver, and returns true if they represent
the same object using a class specific comparison. |
int |
hashCode()
Returns an integer hash code for the receiver. |
String |
toString()
Returns a string containing a concise, human-readable description of the
receiver. |
IdentityHashMap.IdentityHashMapEntry
IdentityHashMap.IdentityHashMapEntry(K theKey,
V theValue)
clone
public Object clone()
- Description copied from class:
Object
- Returns a new instance of the same class as the receiver, whose slots
have been filled in with the values in the slots of the receiver.
Classes which wish to support cloning must specify that they implement
the Cloneable interface, since the implementation checks for this.
- Overrides:
clone in class MapEntry<K,V>
- Returns:
- Object a shallow copy of this object.
equals
public boolean equals(Object object)
- Description copied from class:
Object
- Compares the argument to the receiver, and returns true if they represent
the same object using a class specific comparison. The
implementation in Object returns true only if the argument is the exact
same object as the receiver (==).
- Specified by:
equals in interface Map.Entry<K,V>- Overrides:
equals in class MapEntry<K,V>
- Parameters:
object - Object the object to compare with this object.
- Returns:
- boolean
true if the object is the same as this
object false if it is different from this object. - See Also:
Object.hashCode()
hashCode
public int hashCode()
- Description copied from class:
Object
- Returns an integer hash code for the receiver. Any two objects which
answer
true when passed to .equals must
answer the same value for this method.
- Specified by:
hashCode in interface Map.Entry<K,V>- Overrides:
hashCode in class MapEntry<K,V>
- Returns:
- int the receiver's hash.
- See Also:
Object.equals(java.lang.Object)
toString
public String toString()
- Description copied from class:
Object
- Returns a string containing a concise, human-readable description of the
receiver.
- Overrides:
toString in class MapEntry<K,V>
- Returns:
- String a printable representation for the receiver.
Please submit a feedback, bug or feature