Package org.drools.verifier.core.maps
Interface MultiMap<Key extends Comparable,Value,ListType extends List<Value>>
-
- All Known Implementing Classes:
ArrayMultiMap,RawMultiMap
public interface MultiMap<Key extends Comparable,Value,ListType extends List<Value>>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaddAllValues(Key value, Collection<Value> values)voidaddChangeListener(MultiMapChangeHandler<Key,Value> multiMapChangeHandler)Collection<Value>allValues()voidclear()booleancontainsKey(Key value)KeyfirstKey()ListTypeget(Key value)booleanisEmpty()Set<Key>keySet()KeylastKey()static <Key extends Comparable,V,ListType extends List<V>>
MultiMap<Key,V,ListType>merge(MultiMap<Key,V,ListType> first, MultiMap<Key,V,ListType> second)Merges the second MultiMap into the first.voidmove(Set<Key> oldKeys, Set<Key> newKeys, Value value)booleanput(Key key, Value value)voidputAllValues(Key key, Collection<Value> collection)Collection<Value>remove(Key value)voidremoveValue(Key key, Value value)intsize()MultiMap<Key,Value,ListType>subMap(Key fromKey, boolean fromInclusive, Key toKey, boolean toInclusive)
-
-
-
Method Detail
-
merge
static <Key extends Comparable,V,ListType extends List<V>> MultiMap<Key,V,ListType> merge(MultiMap<Key,V,ListType> first, MultiMap<Key,V,ListType> second)
Merges the second MultiMap into the first.
-
size
int size()
-
addAllValues
boolean addAllValues(Key value, Collection<Value> values)
-
remove
Collection<Value> remove(Key value)
-
isEmpty
boolean isEmpty()
-
addChangeListener
void addChangeListener(MultiMapChangeHandler<Key,Value> multiMapChangeHandler)
-
allValues
Collection<Value> allValues()
-
containsKey
boolean containsKey(Key value)
-
firstKey
Key firstKey()
-
lastKey
Key lastKey()
-
subMap
MultiMap<Key,Value,ListType> subMap(Key fromKey, boolean fromInclusive, Key toKey, boolean toInclusive)
-
clear
void clear()
-
putAllValues
void putAllValues(Key key, Collection<Value> collection)
-
-