Class AbstractMap.SimpleEntry<K,V>
java.lang.Object
java.util.AbstractMap.SimpleEntry<K,V>
- Type Parameters:
K- the type of keyV- the type of value
- All Implemented Interfaces:
Map.Entry<K,V>
- Enclosing class:
AbstractMap<K,V>
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleEntry(Map.Entry<? extends K, ? extends V> entry) Constructs a new instance by an entrySimpleEntry(K theKey, V theValue) Constructs a new instance by key and value. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAnswers whether the object is equal to this entry.getKey()Returns the key.getValue()Returns the value.inthashCode()Answers the hash code of this entry.Sets the value of this entry to the specified value, replacing any existing value.toString()Answers a String representation of this entry.Methods inherited from class Object
clone, getClass, notify, notifyAll, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()final ClassgetClass()Returns the runtime class of an object.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.final voidwait()Causes current thread to wait until another thread invokes the method or the method for this object.final voidwait(long timeout) Causes current thread to wait until either another thread invokes the method or the method for this object, or a specified amount of time has elapsed.final voidwait(long timeout, int nanos) Causes current thread to wait until another thread invokes the method or the method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
-
Constructor Details
-
SimpleEntry
-
SimpleEntry
-
-
Method Details
-
getKey
-
getValue
-
setValue
-
equals
Answers whether the object is equal to this entry. This works across all kinds of the Map.Entry interface. -
hashCode
-
toString
-