public class SetMap<K,V> extends CollectionMap<K,V>
comparator| Constructor and Description |
|---|
SetMap() |
SetMap(Comparator<V> comparator) |
SetMap(SetMap<K,V> other) |
SetMap(SetMap<K,V> other,
Comparator<V> comparator) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
add(Collection<V> c,
V o) |
Set<V> |
get(K key)
Return the set 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 SetMap()
public SetMap(SetMap<K,V> other) throws IllegalArgumentException
IllegalArgumentExceptionpublic SetMap(SetMap<K,V> other, Comparator<V> comparator) throws IllegalArgumentException
IllegalArgumentExceptionpublic SetMap(Comparator<V> comparator)
public Set<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.