public interface MultiMap<Key extends Comparable,Value,ListType extends List<Value>>
Modifier and Type | Method and Description |
---|---|
boolean |
addAllValues(Key value,
Collection<Value> values) |
void |
addChangeListener(MultiMapChangeHandler<Key,Value> multiMapChangeHandler) |
Collection<Value> |
allValues() |
void |
clear() |
boolean |
containsKey(Key value) |
Key |
firstKey() |
ListType |
get(Key value) |
boolean |
isEmpty() |
Set<Key> |
keySet() |
Key |
lastKey() |
static <Key extends Comparable,V,ListType extends List<V>> |
merge(MultiMap<Key,V,ListType> first,
MultiMap<Key,V,ListType> second)
Merges the second MultiMap into the first.
|
void |
move(Set<Key> oldKeys,
Set<Key> newKeys,
Value value) |
boolean |
put(Key key,
Value value) |
void |
putAllValues(Key key,
Collection<Value> collection) |
Collection<Value> |
remove(Key value) |
void |
removeValue(Key key,
Value value) |
int |
size() |
MultiMap<Key,Value,ListType> |
subMap(Key fromKey,
boolean fromInclusive,
Key toKey,
boolean toInclusive) |
static <Key extends Comparable,V,ListType extends List<V>> MultiMap<Key,V,ListType> merge(MultiMap<Key,V,ListType> first, MultiMap<Key,V,ListType> second)
int size()
boolean addAllValues(Key value, Collection<Value> values)
Collection<Value> remove(Key value)
boolean isEmpty()
void addChangeListener(MultiMapChangeHandler<Key,Value> multiMapChangeHandler)
Collection<Value> allValues()
boolean containsKey(Key value)
Key firstKey()
Key lastKey()
MultiMap<Key,Value,ListType> subMap(Key fromKey, boolean fromInclusive, Key toKey, boolean toInclusive)
void clear()
void putAllValues(Key key, Collection<Value> collection)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.