| Constructor | Description |
|---|---|
GSetByHashMap(int initialCapacity,
float loadFactor) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
clear() |
Clear the set.
|
boolean |
contains(K k) |
Does this set contain an element corresponding to the given key?
|
E |
get(K k) |
Return the stored element which is equal to the given key.
|
java.util.Iterator<E> |
iterator() |
|
E |
put(E element) |
Add/replace an element.
|
E |
remove(K k) |
Remove the element corresponding to the given key.
|
int |
size() |
|
java.util.Collection<E> |
values() |
Returns a
Collection view of the values contained in this set. |
public int size()
public boolean contains(K k)
GSetpublic E get(K k)
GSetMap.get(Object).public E put(E element)
GSetMap.put(Object, Object)
but is different from Set.add(Object)
which does not replace the existing element if there is any.public E remove(K k)
GSetMap.remove(Object).public java.util.Iterator<E> iterator()
iterator in interface java.lang.Iterable<K>public void clear()
GSetCopyright © 2008–2025 Apache Software Foundation. All rights reserved.