Interface FeatureMap<K,V>
- Type Parameters:
K-V-
- All Known Implementing Classes:
FeatureMapImpl
A feature map associates a set of features with
items. Multiple items may have exactly the same features.
Hence, this class is called FeatureMap for brevity, but is actually as Feature*Multi*Map.
Multimaps can be represented as Collections of entries; i.e. adding multiple entries with the same key is valid.
- Author:
- raven
-
Method Summary
Modifier and TypeMethodDescriptionentrySet()default voidforEach(BiConsumer<Set<K>, V> consumer) Collection<Map.Entry<Set<K>, V>> getIfSubsetOf(Set<K> prototype) Collection<Map.Entry<Set<K>, V>> getIfSupersetOf(Set<K> prototype) getTagSets(Object v) keySet()voidbooleanbooleanremoveValue(Object value) values()Methods inherited from interface Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toArray
-
Method Details
-
forEach
-
put
-
remove
- Specified by:
removein interfaceCollection<K>
-
removeValue
-
keySet
-
values
Collection<V> values() -
entrySet
-
get
-
getTagSets
-
getIfSupersetOf
-
getIfSubsetOf
-