Package | Description |
---|---|
java.util |
Utilities
|
Modifier and Type | Class and Description |
---|---|
static class |
AbstractMap.SimpleEntry<K,V>
A class which implements Map.Entry.
|
static class |
AbstractMap.SimpleImmutableEntry<K,V>
A class containing an immutable key and value.
|
Modifier and Type | Method and Description |
---|---|
Map.Entry<K,V> |
TreeMap.ceilingEntry(K key)
Returns the entry associated with the least or lowest key
that is greater than or equal to the specified key, or
null if there is no such key. |
Map.Entry<K,V> |
NavigableMap.ceilingEntry(K key)
Returns a key-value mapping associated with the least key
greater than or equal to the given key, or
null if
there is no such key. |
Map.Entry<K,V> |
TreeMap.firstEntry()
Returns the entry associated with the least or lowest key
in the map, or
null if the map is empty. |
Map.Entry<K,V> |
NavigableMap.firstEntry()
Returns a key-value mapping associated with the least
key in this map, or
null if the map is empty. |
Map.Entry<K,V> |
TreeMap.floorEntry(K key)
Returns the entry associated with the greatest or highest key
that is less than or equal to the specified key, or
null if there is no such key. |
Map.Entry<K,V> |
NavigableMap.floorEntry(K key)
Returns a key-value mapping associated with the greatest key
less than or equal to the given key, or
null if there
is no such key. |
Map.Entry<K,V> |
TreeMap.higherEntry(K key)
Returns the entry associated with the least or lowest key
that is strictly greater than the specified key, or
null if there is no such key. |
Map.Entry<K,V> |
NavigableMap.higherEntry(K key)
Returns a key-value mapping associated with the least key
strictly greater than the given key, or
null if there
is no such key. |
Map.Entry<K,V> |
TreeMap.lastEntry()
Returns the entry associated with the greatest or highest key
in the map, or
null if the map is empty. |
Map.Entry<K,V> |
NavigableMap.lastEntry()
Returns a key-value mapping associated with the greatest
key in this map, or
null if the map is empty. |
Map.Entry<K,V> |
TreeMap.lowerEntry(K key)
Returns the entry associated with the greatest or highest key
that is strictly less than the specified key, or
null if there is no such key. |
Map.Entry<K,V> |
NavigableMap.lowerEntry(K key)
Returns a key-value mapping associated with the greatest key
strictly less than the given key, or
null if there is
no such key. |
Map.Entry<K,V> |
TreeMap.pollFirstEntry()
Removes and returns the entry associated with the least
or lowest key in the map, or
null if the map
is empty. |
Map.Entry<K,V> |
NavigableMap.pollFirstEntry()
Removes and returns a key-value mapping associated with
the least key in this map, or
null if the map is empty. |
Map.Entry<K,V> |
TreeMap.pollLastEntry()
Removes and returns the entry associated with the greatest
or highest key in the map, or
null if the map
is empty. |
Map.Entry<K,V> |
NavigableMap.pollLastEntry()
Removes and returns a key-value mapping associated with
the greatest key in this map, or
null if the map is empty. |
Modifier and Type | Method and Description |
---|---|
Set<Map.Entry<K,V>> |
TreeMap.entrySet()
Returns a "set view" of this TreeMap's entries.
|
Set<Map.Entry<K,V>> |
Map.entrySet()
Returns a set view of the mappings in this Map.
|
Set<Map.Entry<K,V>> |
IdentityHashMap.entrySet()
Returns a "set view" of this Map's entries.
|
Set<Map.Entry<K,V>> |
Hashtable.entrySet()
Returns a "set view" of this Hashtable's entries.
|
Set<Map.Entry<K,V>> |
HashMap.entrySet()
Returns a "set view" of this HashMap's entries.
|
abstract Set<Map.Entry<K,V>> |
AbstractMap.entrySet()
Returns a set view of the mappings in this Map.
|
Constructor and Description |
---|
SimpleEntry(Map.Entry<? extends K,? extends V> entry) |
SimpleImmutableEntry(Map.Entry<? extends K,? extends V> entry) |