Package de.scravy.bedrock
Class SpecificityTree<K extends HList<K>,V>
java.lang.Object
java.util.AbstractMap<K,V>
de.scravy.bedrock.SpecificityTree<K,V>
- All Implemented Interfaces:
Container<Pair<K,V>>,ExtendedIterable<Pair<K,V>>,HasLengthAtLeast,Iterable<Pair<K,V>>,Map<K,V>
public class SpecificityTree<K extends HList<K>,V> extends AbstractMap<K,V> implements Container<Pair<K,V>>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSpecificityTree.Builder<L extends HList<L>>Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>Nested classes/interfaces inherited from interface de.scravy.bedrock.ExtendedIterable
ExtendedIterable.ForEachWithIndexConsumer<T> -
Method Summary
Modifier and Type Method Description SpecificityTree<K,V>add(K key, V value)static <K extends HList<K>>
longcomputeSpecificityFor(K key)Set<Map.Entry<K,V>>entrySet()Vget(K key)Iterator<Pair<K,V>>iterator()Vput(K key, V value)static <T> SpecificityTree.Builder<C<T,Nil>>withDimension(String name, Class<T> clazz)Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, putAll, remove, size, toString, valuesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface de.scravy.bedrock.Container
asString, asString, contains, draw, draw, exists, forAll, isEmpty, nonEmpty, stream, toListMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Method Details