public class RawMultiMap<Key extends Comparable,Value,ListType extends List<Value>> extends Object implements MultiMap<Key,Value,ListType>
Modifier | Constructor and Description |
---|---|
|
RawMultiMap(NewSubMapProvider<Value,ListType> newSubMapProvider) |
protected |
RawMultiMap(SortedMap<Key,ListType> map,
NewSubMapProvider<Value,ListType> newSubMapProvider) |
Modifier and Type | Method and Description |
---|---|
boolean |
addAllValues(Key key,
Collection<Value> values) |
void |
addChangeListener(MultiMapChangeHandler<Key,Value> multiMapChangeHandler) |
Collection<Value> |
allValues() |
void |
clear() |
boolean |
containsKey(Key key) |
Key |
firstKey() |
ListType |
get(Key key) |
boolean |
isEmpty() |
Set<Key> |
keySet() |
Key |
lastKey() |
void |
move(Set<Key> oldKeys,
Set<Key> newKeys,
Value value) |
void |
put(Key key,
int index,
Value value) |
boolean |
put(Key key,
Value value) |
void |
putAllValues(Key key,
Collection<Value> values) |
Collection<Value> |
remove(Key key) |
void |
removeValue(Key key,
Value value) |
int |
size() |
MultiMap<Key,Value,ListType> |
subMap(Key fromKey,
boolean fromInclusive,
Key toKey,
boolean toInclusive) |
public RawMultiMap(NewSubMapProvider<Value,ListType> newSubMapProvider)
public boolean isEmpty()
public boolean containsKey(Key key)
containsKey
in interface MultiMap<Key extends Comparable,Value,ListType extends List<Value>>
public boolean addAllValues(Key key, Collection<Value> values)
addAllValues
in interface MultiMap<Key extends Comparable,Value,ListType extends List<Value>>
public void addChangeListener(MultiMapChangeHandler<Key,Value> multiMapChangeHandler)
addChangeListener
in interface MultiMap<Key extends Comparable,Value,ListType extends List<Value>>
public Collection<Value> remove(Key key)
public int size()
public Collection<Value> allValues()
public Key lastKey()
public MultiMap<Key,Value,ListType> subMap(Key fromKey, boolean fromInclusive, Key toKey, boolean toInclusive)
public void removeValue(Key key, Value value)
removeValue
in interface MultiMap<Key extends Comparable,Value,ListType extends List<Value>>
public Key firstKey()
public void clear()
public void putAllValues(Key key, Collection<Value> values)
putAllValues
in interface MultiMap<Key extends Comparable,Value,ListType extends List<Value>>
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.