public class ClassInheritanceMultiMap<T>
extends java.util.AbstractSet<T>
Modifier and Type | Field and Description |
---|---|
private static java.util.Set<java.lang.Class<?>> |
ALL_KNOWN |
private java.lang.Class<T> |
baseClass |
private java.util.Set<java.lang.Class<?>> |
knownKeys |
private java.util.Map<java.lang.Class<?>,java.util.List<T>> |
map |
private java.util.List<T> |
values |
Constructor and Description |
---|
ClassInheritanceMultiMap(java.lang.Class<T> baseClassIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T p_add_1_) |
private void |
addForClass(T value,
java.lang.Class<?> parentClass) |
boolean |
contains(java.lang.Object p_contains_1_) |
protected void |
createLookup(java.lang.Class<?> clazz) |
<S> java.lang.Iterable<S> |
getByClass(java.lang.Class<S> clazz) |
protected java.lang.Class<?> |
initializeClassLookup(java.lang.Class<?> clazz) |
java.util.Iterator<T> |
iterator() |
boolean |
remove(java.lang.Object p_remove_1_) |
int |
size() |
addAll, clear, containsAll, isEmpty, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
private static final java.util.Set<java.lang.Class<?>> ALL_KNOWN
private final java.util.Map<java.lang.Class<?>,java.util.List<T>> map
private final java.util.Set<java.lang.Class<?>> knownKeys
private final java.lang.Class<T> baseClass
private final java.util.List<T> values
public ClassInheritanceMultiMap(java.lang.Class<T> baseClassIn)
protected void createLookup(java.lang.Class<?> clazz)
protected java.lang.Class<?> initializeClassLookup(java.lang.Class<?> clazz)
public boolean add(T p_add_1_)
private void addForClass(T value, java.lang.Class<?> parentClass)
public boolean remove(java.lang.Object p_remove_1_)
public boolean contains(java.lang.Object p_contains_1_)
public <S> java.lang.Iterable<S> getByClass(java.lang.Class<S> clazz)
public java.util.Iterator<T> iterator()