KEYTYPE - The key type.VALUETYPE - The value type.@NotThreadSafe public final class SingleElementMap<KEYTYPE,VALUETYPE> extends Object implements Map<KEYTYPE,VALUETYPE>, IHasSize
| 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() |
public boolean containsKey(@Nullable Object aKey)
containsKey in interface Map<KEYTYPE,VALUETYPE>public boolean containsValue(@Nullable Object aValue)
containsValue in interface Map<KEYTYPE,VALUETYPE>public boolean isEmpty()
@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 © 2006–2014 phloc systems. All rights reserved.