public abstract class AbstractTypedMap<EK,EV,IK,IV> extends Object implements Map<EK,EV>
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractTypedMap.Converter<E,I>
Defines a converter that converts an internal value to an external value and vice versa.
|
| Constructor and Description |
|---|
AbstractTypedMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
protected Map<IK,IV> |
convert(Map<? extends EK,? extends EV> t)
Validates and unwraps the map.
|
Set<Map.Entry<EK,EV>> |
entrySet() |
boolean |
equals(Object o)
Compare to parameters objects.
|
EV |
get(Object key) |
protected abstract Map<IK,IV> |
getDelegate() |
abstract AbstractTypedMap.Converter<EK,IK> |
getKeyConverter() |
abstract AbstractTypedMap.Converter<EV,IV> |
getValueConverter() |
boolean |
isEmpty() |
Set<EK> |
keySet() |
EV |
put(EK ek,
EV ev) |
void |
putAll(Map<? extends EK,? extends EV> em) |
EV |
remove(Object key) |
void |
replace(Map<EK,EV> map)
Replace the content with the new map which is validated before replacement.
|
int |
size() |
String |
toString() |
void |
validate()
Validate the content.
|
Collection<EV> |
values() |
public abstract AbstractTypedMap.Converter<EK,IK> getKeyConverter()
public abstract AbstractTypedMap.Converter<EV,IV> getValueConverter()
public final boolean containsKey(Object key)
containsKey in interface Map<EK,EV>public final boolean containsValue(Object value)
containsValue in interface Map<EK,EV>public final boolean equals(Object o)
protected final Map<IK,IV> convert(Map<? extends EK,? extends EV> t) throws IllegalArgumentException, NullPointerException, ClassCastException
public final void replace(Map<EK,EV> map) throws ClassCastException, NullPointerException, IllegalArgumentException
public final void validate()
throws ClassCastException,
NullPointerException,
IllegalArgumentException
Copyright © 2025 JBoss by Red Hat. All Rights Reserved.