Package org.drools.verifier.core.maps
Class RawMultiMap<Key extends Comparable,Value,ListType extends List<Value>>
- java.lang.Object
-
- org.drools.verifier.core.maps.RawMultiMap<Key,Value,ListType>
-
- All Implemented Interfaces:
MultiMap<Key,Value,ListType>
- Direct Known Subclasses:
ArrayMultiMap
public class RawMultiMap<Key extends Comparable,Value,ListType extends List<Value>> extends Object implements MultiMap<Key,Value,ListType>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRawMultiMap(SortedMap<Key,ListType> map, NewSubMapProvider<Value,ListType> newSubMapProvider)RawMultiMap(NewSubMapProvider<Value,ListType> newSubMapProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddAllValues(Key key, Collection<Value> values)voidaddChangeListener(MultiMapChangeHandler<Key,Value> multiMapChangeHandler)Collection<Value>allValues()voidclear()booleancontainsKey(Key key)KeyfirstKey()ListTypeget(Key key)booleanisEmpty()Set<Key>keySet()KeylastKey()voidmove(Set<Key> oldKeys, Set<Key> newKeys, Value value)voidput(Key key, int index, Value value)booleanput(Key key, Value value)voidputAllValues(Key key, Collection<Value> values)Collection<Value>remove(Key key)voidremoveValue(Key key, Value value)intsize()MultiMap<Key,Value,ListType>subMap(Key fromKey, boolean fromInclusive, Key toKey, boolean toInclusive)
-
-
-
Constructor Detail
-
RawMultiMap
public RawMultiMap(NewSubMapProvider<Value,ListType> newSubMapProvider)
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
containsKey
public boolean containsKey(Key key)
- Specified by:
containsKeyin interfaceMultiMap<Key extends Comparable,Value,ListType extends List<Value>>
-
addAllValues
public boolean addAllValues(Key key, Collection<Value> values)
- Specified by:
addAllValuesin interfaceMultiMap<Key extends Comparable,Value,ListType extends List<Value>>
-
addChangeListener
public void addChangeListener(MultiMapChangeHandler<Key,Value> multiMapChangeHandler)
- Specified by:
addChangeListenerin interfaceMultiMap<Key extends Comparable,Value,ListType extends List<Value>>
-
remove
public Collection<Value> remove(Key key)
-
size
public int size()
-
allValues
public Collection<Value> allValues()
-
lastKey
public Key lastKey()
-
subMap
public MultiMap<Key,Value,ListType> subMap(Key fromKey, boolean fromInclusive, Key toKey, boolean toInclusive)
-
removeValue
public void removeValue(Key key, Value value)
- Specified by:
removeValuein interfaceMultiMap<Key extends Comparable,Value,ListType extends List<Value>>
-
firstKey
public Key firstKey()
-
clear
public void clear()
-
putAllValues
public void putAllValues(Key key, Collection<Value> values)
- Specified by:
putAllValuesin interfaceMultiMap<Key extends Comparable,Value,ListType extends List<Value>>
-
-