K - V - public final class StackMap<K,V> extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
StackMap.StackMapEntry<KEY,VALUE>
Immutable class for a Key/Value tuple.
|
| Constructor and Description |
|---|
StackMap() |
| Modifier and Type | Method and Description |
|---|---|
V |
get(K key)
HashMap access to get the value for a key.
|
Map.Entry<K,V> |
peek()
Retrieves the first item in the stack, but does not remove it.
|
Map.Entry<K,V> |
pop()
Retrieves the first item in the stack and removes it.
|
V |
put(K key,
V value)
Put method which puts the k/v mapping into the map and pushes the key on
the stack.
|
Copyright © 2016. All rights reserved.