ValueType - type of valuespublic interface IntegerMap<ValueType>
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(int key)
Return true if the map contains the given key.
|
ValueType |
get(int key)
Get a value.
|
default boolean |
isEmpty()
Return true if this map is empty.
|
ValueType |
put(int key,
ValueType entry)
Put a value and return the previous value associated with this key, or null.
|
ValueType |
remove(int key)
Remove a value.
|
int |
size()
Return the number of elements.
|
ValueType put(int key, ValueType entry)
ValueType get(int key)
ValueType remove(int key)
boolean containsKey(int key)
int size()
default boolean isEmpty()
Copyright © 2017. All rights reserved.