public class ListMap<K,V> extends CollectionMap<K,V>
comparator| Constructor and Description |
|---|
ListMap() |
ListMap(Comparator<V> comparator) |
ListMap(SetMap<K,V> other) |
ListMap(SetMap<K,V> other,
Comparator<V> comparator) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
add(Collection<V> c,
V o) |
List<V> |
get(K key)
Return the list specified by the key.
|
protected Collection<V> |
newCollection() |
protected Collection<V> |
newCollection(Collection<V> other) |
protected void |
remove(Collection<V> c,
Object o)
Removes an object from the collection.
|
public ListMap()
public ListMap(SetMap<K,V> other) throws IllegalArgumentException
IllegalArgumentExceptionpublic ListMap(SetMap<K,V> other, Comparator<V> comparator) throws IllegalArgumentException
IllegalArgumentExceptionpublic ListMap(Comparator<V> comparator)
public List<V> get(K key)
get in class CollectionMap<K,V>protected void add(Collection<V> c, V o)
add in class CollectionMap<K,V>protected void remove(Collection<V> c, Object o)
CollectionMapObject and
not the parameterized type because the Collectionremove in class CollectionMap<K,V>c - the collection to remove fromo - the object to removeprotected Collection<V> newCollection()
newCollection in class CollectionMap<K,V>protected Collection<V> newCollection(Collection<V> other)
newCollection in class CollectionMap<K,V>Copyright © 2025 JBoss by Red Hat. All Rights Reserved.