protected class SafeHashMap.ValuesCollection extends AbstractCollection<V> implements Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
ValuesCollection() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all of the elements from this Collection of values by
clearing the underlying Map.
|
Iterator<V> |
iterator()
Obtain an iterator over the values in the Map.
|
int |
size()
Determine the number of values in the Collection.
|
Object[] |
toArray()
Returns an array containing all of the values in the Collection.
|
<T> T[] |
toArray(T[] a)
Returns an array with a runtime type is that of the specified array
and that contains all of the values in the Collection.
|
add, addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streampublic Iterator<V> iterator()
iterator in interface Iterable<V>iterator in interface Collection<V>iterator in class AbstractCollection<V>public int size()
size in interface Collection<V>size in class AbstractCollection<V>public void clear()
clear in interface Collection<V>clear in class AbstractCollection<V>public Object[] toArray()
toArray in interface Collection<V>toArray in class AbstractCollection<V>public <T> T[] toArray(T[] a)
If the Collection fits in the specified array with room to spare (i.e., the array has more elements than the Collection), the element in the array immediately following the end of the Collection is set to null. This is useful in determining the length of the Collection only if the caller knows that the Collection does not contain any null values.)
toArray in interface Collection<V>toArray in class AbstractCollection<V>a - the array into which the elements of the Collection are
to be stored, if it is big enough; otherwise, a new
array of the same runtime type is allocated for this
purposeArrayStoreException - if the runtime type of the specified
array is not a supertype of the runtime type of every
element in this Collection of values