public class ClassMap<V> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected HashMap<Class,V[]> |
cachedValues |
protected HashMap<Class,V> |
values |
| Constructor and Description |
|---|
ClassMap(Class keyType,
Class<V> valueType) |
ClassMap(Class keyType,
Class<V> valueType,
int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsExactKey(Class key) |
boolean |
equals(Object o) |
static Class[] |
findClassHierarchy(Class clazz,
Class baseType) |
V |
get(Class key) |
V[] |
getAll(Class key) |
protected V[] |
getAllImpl(Class key) |
V[] |
getAllRequired(Class key) |
V |
getExact(Class key) |
Class[] |
getKeys(Class classKey) |
V |
getRequired(Class key) |
int |
hashCode() |
Set<V> |
keySet() |
V |
put(Class classKey,
V value) |
V |
remove(Class classKey) |
int |
size() |
Collection<V> |
values() |
public Collection<V> values()
public boolean containsExactKey(Class key)
public void clear()
public int size()
Copyright © 2022 vpc open source initiative. All rights reserved.