构造器和说明 |
---|
GSetByHashMap(int initialCapacity,
float loadFactor) |
限定符和类型 | 方法和说明 |
---|---|
void |
clear() |
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.
|
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() |
public boolean contains(K k)
GSet
public E get(K k)
GSet
Map.get(Object)
.public E put(E element)
GSet
Map.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)
GSet
Map.remove(Object)
.Copyright © 2009 The Apache Software Foundation