| Modifier and Type | Field and Description |
|---|---|
| pack-priv HashSet | |
| pack-priv ReferenceQueue |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(Object
element to be added to this set o)Overrides java. Implements java. Adds the specified element to this set if it is not already present (optional operation). |
| public void | clear()
Overrides java. Implements java. Removes all of the elements from this set (optional operation). |
| public boolean | contains(Object
element whose presence in this set is to be tested o)Overrides java. Implements java. Returns |
| public Iterator | iterator()
Implements abstract java. Implements java. Returns an iterator over the elements in this set. |
| public boolean | remove(Object
object to be removed from this set, if present o)Overrides java. Implements java. Removes the specified element from this set if it is present (optional operation). |
| public int | size()
Implements abstract java. Implements java. this size may not be completely accurate, because keys in the set may have cleared. |
| public Object[] | toArray()
Overrides java. Implements java. Returns an array containing all of the elements in this set. |
| public Object[] | toArray(Object[]
the array into which the elements of this set are to be
stored, if it is big enough; otherwise, a new array of the same
runtime type is allocated for this purpose. a)Overrides java. Implements java. Returns an array containing all of the elements in this set; the runtime type of the returned array is that of the specified array. |
| private ArrayList | |
| public void |
| inner | back to summary |
|---|---|
| pack-priv HashSet<E> inner | |
| queue | back to summary |
|---|---|
| pack-priv ReferenceQueue<T> queue | |
| ManualCleanupSoftSet | back to summary |
|---|---|
| pack-priv ManualCleanupSoftSet() | |
| add | back to summary |
|---|---|
| public boolean add(Object o) Overrides java. Implements java. Doc from java. Adds the specified element to this set if it is not already present
(optional operation). More formally, adds the specified element
The stipulation above does not imply that sets must accept all
elements; sets may refuse to add any particular element, including
| |
| clear | back to summary |
|---|---|
| public void clear() Overrides java. Implements java. Doc from java. Removes all of the elements from this set (optional operation). The set will be empty after this call returns. | |
| contains | back to summary |
|---|---|
| public boolean contains(Object o) Overrides java. Implements java. Doc from java. Returns
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements abstract java. Implements java. Doc from java. Returns an iterator over the elements in this set. The elements are returned in no particular order (unless this set is an instance of some class that provides a guarantee).
| |
| remove | back to summary |
|---|---|
| public boolean remove(Object o) Overrides java. Implements java. Doc from java. Removes the specified element from this set if it is present
(optional operation). More formally, removes an element
| |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. this size may not be completely accurate, because keys in the set may have cleared. In general with this call, one must presume that elements may at unpredictable times, simply "disappear".
| |
| toArray | back to summary |
|---|---|
| public Object[] toArray() Overrides java. Implements java. Doc from java. Returns an array containing all of the elements in this set. If this set makes any guarantees as to what order its elements are returned by its iterator, this method must return the elements in the same order. The returned array will be "safe" in that no references to it are maintained by this set. (In other words, this method must allocate a new array even if this set is backed by an array). The caller is thus free to modify the returned array. This method acts as bridge between array-based and collection-based APIs.
| |
| toArray | back to summary |
|---|---|
| public Object[] toArray(Object[] a) Overrides java. Implements java. Doc from java. Returns an array containing all of the elements in this set; the runtime type of the returned array is that of the specified array. If the set fits in the specified array, it is returned therein. Otherwise, a new array is allocated with the runtime type of the specified array and the size of this set. If this set fits in the specified array with room to spare
(i.e., the array has more elements than this set), the element in
the array immediately following the end of the set is set to
If this set makes any guarantees as to what order its elements are returned by its iterator, this method must return the elements in the same order. Like the Suppose
String[] y = x.toArray(new String[0]);
Note that toArray(new Object[0]) is identical in function to
toArray().
| |
| toArrayList | back to summary |
|---|---|
| private ArrayList | |
| vacuum | back to summary |
|---|---|
| public void vacuum() throws CachedStoreException Implements com. | |