Package org.javimmutable.collections
Class MapEntry<K,V>
java.lang.Object
org.javimmutable.collections.MapEntry<K,V>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <K,
V> void addToString
(StringBuilder sb, K key, V value) static void
addToString
(StringBuilder sb, IMapEntry entry) static <K extends Comparable<K>,
V>
intcompareKeys
(IMapEntry<K, V> a, IMapEntry<K, V> b) static <K,
V> IMapEntry <K, V> entry
(K key, V value) boolean
getKey()
getValue()
int
hashCode()
static <K,
V> Map.Entry <K, V> javaEntry
(K key, V value) static String
makeToString
(IMapEntry entry) toIMapEntries
(Collection<Map.Entry<K, V>> source) toMapEntries
(Collection<IMapEntry<K, V>> source) toString()
-
Field Details
-
key
-
value
-
-
Constructor Details
-
MapEntry
-
MapEntry
-
MapEntry
-
-
Method Details
-
entry
-
javaEntry
-
compareKeys
public static <K extends Comparable<K>,V> int compareKeys(@Nonnull IMapEntry<K, V> a, @Nonnull IMapEntry<K, V> b) -
getKey
-
getValue
-
setValue
-
asIMapEntry
-
asMapEntry
-
hashCode
public int hashCode() -
equals
-
toString
-
makeToString
-
addToString
-
addToString
-
toMapEntries
-
toIMapEntries
-