Package org.drools.verifier.core.maps
Interface MultiMap<Key extends java.lang.Comparable,Value,ListType extends java.util.List<Value>>
-
- All Known Implementing Classes:
ArrayMultiMap,RawMultiMap
public interface MultiMap<Key extends java.lang.Comparable,Value,ListType extends java.util.List<Value>>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaddAllValues(Key value, java.util.Collection<Value> values)voidaddChangeListener(MultiMapChangeHandler<Key,Value> multiMapChangeHandler)java.util.Collection<Value>allValues()voidclear()booleancontainsKey(Key value)KeyfirstKey()ListTypeget(Key value)booleanisEmpty()java.util.Set<Key>keySet()KeylastKey()static <Key extends java.lang.Comparable,V,ListType extends java.util.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(java.util.Set<Key> oldKeys, java.util.Set<Key> newKeys, Value value)booleanput(Key key, Value value)voidputAllValues(Key key, java.util.Collection<Value> collection)java.util.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 java.lang.Comparable,V,ListType extends java.util.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()
-
keySet
java.util.Set<Key> keySet()
-
isEmpty
boolean isEmpty()
-
addChangeListener
void addChangeListener(MultiMapChangeHandler<Key,Value> multiMapChangeHandler)
-
allValues
java.util.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()
-
-