Package org.drools.verifier.core.maps
Class RawMultiMap<Key extends java.lang.Comparable,Value,ListType extends java.util.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 java.lang.Comparable,Value,ListType extends java.util.List<Value>> extends java.lang.Object implements MultiMap<Key,Value,ListType>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRawMultiMap(java.util.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, java.util.Collection<Value> values)voidaddChangeListener(MultiMapChangeHandler<Key,Value> multiMapChangeHandler)java.util.Collection<Value>allValues()voidclear()booleancontainsKey(Key key)KeyfirstKey()ListTypeget(Key key)booleanisEmpty()java.util.Set<Key>keySet()KeylastKey()voidmove(java.util.Set<Key> oldKeys, java.util.Set<Key> newKeys, Value value)voidput(Key key, int index, Value value)booleanput(Key key, Value value)voidputAllValues(Key key, java.util.Collection<Value> values)java.util.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)
-
RawMultiMap
protected RawMultiMap(java.util.SortedMap<Key,ListType> map, NewSubMapProvider<Value,ListType> newSubMapProvider)
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
containsKey
public boolean containsKey(Key key)
-
addChangeListener
public void addChangeListener(MultiMapChangeHandler<Key,Value> multiMapChangeHandler)
-
size
public int size()
-
keySet
public java.util.Set<Key> keySet()
-
allValues
public java.util.Collection<Value> allValues()
-
lastKey
public Key lastKey()
-
subMap
public MultiMap<Key,Value,ListType> subMap(Key fromKey, boolean fromInclusive, Key toKey, boolean toInclusive)
-
firstKey
public Key firstKey()
-
clear
public void clear()
-
-