public interface ImmutableMap<S,T> extends Iterable<ImmutableMapEntry<S,T>>, Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(S key) |
boolean |
containsValue(T value) |
T |
get(S key) |
boolean |
isEmpty() |
Iterator<ImmutableMapEntry<S,T>> |
iterator() |
Iterator<S> |
keyIterator() |
ImmutableMap<S,T> |
put(S key,
T value)
adds a mapping
|
ImmutableMap<S,T> |
remove(S key)
removes mapping (key,...) from map
|
ImmutableMap<S,T> |
removeAll(T value)
removes all mappings (...
|
int |
size() |
Iterator<T> |
valueIterator() |
forEach, spliterator
ImmutableMap<S,T> put(S key, T value)
int size()
boolean isEmpty()
boolean containsKey(S key)
boolean containsValue(T value)
ImmutableMap<S,T> remove(S key)
ImmutableMap<S,T> removeAll(T value)
Iterator<ImmutableMapEntry<S,T>> iterator()
iterator
in interface Iterable<ImmutableMapEntry<S,T>>