KEYTYPE - The key type.VALUETYPE - The value type.@NotThreadSafe public final class SingleElementMap<KEYTYPE,VALUETYPE> extends Object implements Map<KEYTYPE,VALUETYPE>
| Constructor and Description |
|---|
SingleElementMap() |
SingleElementMap(KEYTYPE aKey,
VALUETYPE aValue) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object aKey) |
boolean |
containsValue(Object aValue) |
Set<Map.Entry<KEYTYPE,VALUETYPE>> |
entrySet() |
boolean |
equals(Object o) |
VALUETYPE |
get(Object aKey) |
int |
hashCode() |
boolean |
isEmpty() |
Set<KEYTYPE> |
keySet() |
VALUETYPE |
put(KEYTYPE aKey,
VALUETYPE aElement) |
void |
putAll(Map<? extends KEYTYPE,? extends VALUETYPE> aMap) |
VALUETYPE |
remove(Object aKey) |
int |
size() |
String |
toString() |
Collection<VALUETYPE> |
values() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic boolean containsKey(@Nullable Object aKey)
containsKey in interface Map<KEYTYPE,VALUETYPE>public boolean containsValue(@Nullable Object aValue)
containsValue in interface Map<KEYTYPE,VALUETYPE>@Nonnegative public int size()
@ReturnsImmutableObject @Nonnull public Set<KEYTYPE> keySet()
@ReturnsImmutableObject @Nonnull public Collection<VALUETYPE> values()
public boolean equals(Object o)
public int hashCode()
Copyright © 2014–2016 Philip Helger. All rights reserved.