| Constructor and Description |
|---|
MiniMap3(K key0,
V value0,
K key1,
V value1,
K key2,
V value2)
Construct a
MiniMap2 with the given keys and values. |
MiniMap3(Map<K,V> map)
Construct a
MiniMap3 from another Map (helps with deserializing). |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(Object key)
Test whether the map contains a key equal to the specified key (which may be
null). |
boolean |
containsValue(Object value)
Test whether the map contains a value equal to the specified value (which may be
null). |
Set<Map.Entry<K,V>> |
entrySet()
Get a
Set of the entries in this map. |
boolean |
equals(Object other)
Compares the specified object with this map for equality.
|
V |
get(Object key)
Get the value corresponding to the supplied key.
|
int |
hashCode()
Returns the hash code value for this map.
|
boolean |
isEmpty()
Return
false to indicate that the map is not empty. |
Set<K> |
keySet()
Get a
Set of the keys in use in this map. |
int |
size()
Get the number of entries (always three).
|
String |
toString()
Returns a string representation of this map.
|
Collection<V> |
values()
Get a
Collection of the values in this map. |
clear, entry, map, map, map, of, of, of, of, of, put, putAll, remove, stringOfclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic MiniMap3(K key0, V value0, K key1, V value1, K key2, V value2)
MiniMap2 with the given keys and values.key0 - the first keyvalue0 - the first valuekey1 - the second keyvalue1 - the second valuekey2 - the third keyvalue2 - the third valuepublic int size()
public boolean isEmpty()
false to indicate that the map is not empty.falsepublic boolean containsKey(Object key)
null).key - the keytrue if the map contains the keypublic boolean containsValue(Object value)
null).value - the valuetrue if the map contains the valuepublic V get(Object key)
null is returned.key - the keypublic Collection<V> values()
Collection of the values in this map. Returns a Collection containing the three values.Collectionpublic boolean equals(Object other)
true if the given object is also a
map containing a single entry identical to that of this map.public int hashCode()
entrySet() view.Copyright © 2022. All rights reserved.