K - V - public class FeatureMapImpl<K,V> extends AbstractCollection<Map.Entry<Set<K>,V>> implements FeatureMap<K,V>
| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.collect.Multimap<Set<K>,V> |
tagSetToValues |
protected Map<K,Integer> |
tagToCount |
protected com.google.common.collect.Multimap<K,Set<K>> |
tagToTagSets |
protected com.google.common.collect.Multimap<V,Set<K>> |
valueToTagSets |
| Constructor and Description |
|---|
FeatureMapImpl() |
| Modifier and Type | Method and Description |
|---|---|
Set<Map.Entry<Set<K>,Collection<V>>> |
entrySet() |
Collection<V> |
get(Set<K> prototype) |
Collection<Map.Entry<Set<K>,V>> |
getIfSubsetOf(Set<K> prototype) |
Collection<Map.Entry<Set<K>,V>> |
getIfSupersetOf(Set<K> prototype)
Return every entry of this featureMap whose associated feature set
is a super set of the given one.
|
Set<Set<K>> |
getTagSets(Object v) |
Iterator<Map.Entry<Set<K>,V>> |
iterator() |
Set<Set<K>> |
keySet() |
void |
put(Set<K> tagSet,
V value) |
boolean |
remove(Object value) |
boolean |
removeValue(Object v) |
int |
size() |
String |
toString() |
Collection<V> |
values() |
add, addAll, clear, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEachadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArraypublic Collection<V> values()
values in interface FeatureMap<K,V>public Set<Map.Entry<Set<K>,Collection<V>>> entrySet()
entrySet in interface FeatureMap<K,V>public boolean remove(Object value)
public Collection<Map.Entry<Set<K>,V>> getIfSupersetOf(Set<K> prototype)
getIfSupersetOf in interface FeatureMap<K,V>public Collection<Map.Entry<Set<K>,V>> getIfSubsetOf(Set<K> prototype)
getIfSubsetOf in interface FeatureMap<K,V>public String toString()
public int size()
public Collection<V> get(Set<K> prototype)
get in interface FeatureMap<K,V>public boolean removeValue(Object v)
removeValue in interface FeatureMap<K,V>public Set<Set<K>> getTagSets(Object v)
getTagSets in interface FeatureMap<K,V>Copyright © 2018. All rights reserved.