public class MapEntry<K,V>
extends java.lang.Object
Map
.Modifier | Constructor and Description |
---|---|
private |
MapEntry(K key,
V value) |
Modifier and Type | Method and Description |
---|---|
static <K,V> MapEntry<K,V> |
entry(K key,
V value)
Creates a new
MapEntry . |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString() |
public static <K,V> MapEntry<K,V> entry(K key, V value)
MapEntry
.key
- the key of the entry to create.value
- the value of the entry to create.MapEntry
.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object