Package | Description |
---|---|
java.util |
Modifier and Type | Interface and Description |
---|---|
interface |
List<E>
An ordered collection (also known as a sequence).
|
interface |
Set<E> |
Modifier and Type | Class and Description |
---|---|
class |
AbstractCollection<E> |
class |
AbstractList<E> |
class |
AbstractSet<E> |
class |
ArrayList<E> |
class |
Stack<E>
The
Stack class represents a last-in-first-out (LIFO) stack of objects. |
class |
Vector<E>
The
Vector class implements a growable array of objects. |
Modifier and Type | Method and Description |
---|---|
Collection<V> |
WeakHashMap.values()
Returns a
Collection view of the values contained in this map. |
Collection<V> |
Map.values()
Returns a
Collection view of the values contained in this map. |
Collection<V> |
Hashtable.values()
Returns a
Collection view of the values contained in this map. |
Collection<V> |
HashMap.values()
Returns a
Collection view of the values contained in this map. |
Collection<V> |
AbstractMap.values()
Returns a
Collection view of the values contained in this map. |
Modifier and Type | Method and Description |
---|---|
boolean |
Vector.addAll(Collection<? extends E> c)
Appends all of the elements in the specified Collection to the end of this Vector, in the order
that they are returned by the specified Collection's Iterator.
|
boolean |
Set.addAll(Collection<? extends E> c)
Adds all of the elements in the specified collection to this set if they're not already present
(optional operation).
|
boolean |
List.addAll(Collection<? extends E> c)
Appends all of the elements in the specified collection to the end of this list, in the order
that they are returned by the specified collection's iterator (optional operation).
|
boolean |
Collection.addAll(Collection<? extends E> c)
Adds all of the elements in the specified collection to this collection (optional operation).
|
boolean |
ArrayList.addAll(Collection<? extends E> c)
Appends all of the elements in the specified collection to the end of this list, in the order
that they are returned by the specified collection's Iterator.
|
boolean |
AbstractCollection.addAll(Collection<? extends E> c)
Adds all of the elements in the specified collection to this collection (optional operation).
|
boolean |
Vector.addAll(int index,
Collection<? extends E> c)
Inserts all of the elements in the specified Collection into this Vector at the specified
position.
|
boolean |
List.addAll(int index,
Collection<? extends E> c)
Inserts all of the elements in the specified collection into this list at the specified position
(optional operation).
|
boolean |
ArrayList.addAll(int index,
Collection<? extends E> c)
Inserts all of the elements in the specified collection into this list, starting at the specified
position.
|
boolean |
AbstractList.addAll(int index,
Collection<? extends E> c)
Inserts all of the elements in the specified collection into this list at the specified position
(optional operation).
|
boolean |
Vector.containsAll(Collection<?> c)
Returns true if this Vector contains all of the elements in the specified Collection.
|
boolean |
Set.containsAll(Collection<?> c)
Returns true if this set contains all of the elements of the specified collection.
|
boolean |
List.containsAll(Collection<?> c)
Returns true if this list contains all of the elements of the specified collection.
|
boolean |
Collection.containsAll(Collection<?> c)
Returns true if this collection contains all of the elements in the specified
collection.
|
boolean |
AbstractCollection.containsAll(Collection<?> c)
Adds all of the elements in the specified collection to this collection (optional operation).
|
boolean |
Vector.removeAll(Collection<?> c)
Removes from this Vector all of its elements that are contained in the specified Collection.
|
boolean |
Set.removeAll(Collection<?> c)
Removes from this set all of its elements that are contained in the specified collection
(optional operation).
|
boolean |
List.removeAll(Collection<?> c)
Removes from this list all of its elements that are contained in the specified collection
(optional operation).
|
boolean |
Collection.removeAll(Collection<?> c)
Removes all of this collection's elements that are also contained in the specified collection
(optional operation).
|
boolean |
ArrayList.removeAll(Collection<?> c)
Removes from this list all of its elements that are contained in the specified collection.
|
boolean |
AbstractSet.removeAll(Collection<?> c)
Removes from this set all of its elements that are contained in the specified collection
(optional operation).
|
boolean |
AbstractCollection.removeAll(Collection<?> c)
Removes all of this collection's elements that are also contained in the specified collection
(optional operation).
|
boolean |
Vector.retainAll(Collection<?> c)
Retains only the elements in this Vector that are contained in the specified Collection.
|
boolean |
Set.retainAll(Collection<?> c)
Retains only the elements in this set that are contained in the specified collection (optional
operation).
|
boolean |
List.retainAll(Collection<?> c)
Retains only the elements in this list that are contained in the specified collection (optional
operation).
|
boolean |
Collection.retainAll(Collection<?> c)
Retains only the elements in this collection that are contained in the specified collection
(optional operation).
|
boolean |
ArrayList.retainAll(Collection<?> c)
Retains only the elements in this list that are contained in the specified collection.
|
boolean |
AbstractCollection.retainAll(Collection<?> c)
Retains only the elements in this collection that are contained in the specified collection
(optional operation).
|
Constructor and Description |
---|
ArrayList(Collection<? extends E> c)
Constructs a list containing the elements of the specified collection, in the order they are
returned by the collection's iterator.
|
Vector(Collection<? extends E> c)
Constructs a vector containing the elements of the specified collection, in the order they are
returned by the collection's iterator.
|