|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Collection | |
java.util |
Uses of Collection in java.util |
Subinterfaces of Collection in java.util | |
interface |
List
List is a collection which maintains an ordering for its elements. |
interface |
Set
Set is a collection which does not allow duplicate elements. |
Classes in java.util that implement Collection | |
class |
AbstractCollection
This class provides a skeletal implementation of the Collection interface, to minimize the effort required to implement this interface. |
class |
AbstractList
This class provides a skeletal implementation of the List interface to minimize the effort required to implement this interface backed by a "random access" data store (such as an array). |
class |
AbstractSet
This class provides a skeletal implementation of the Set interface to minimize the effort required to implement this interface. |
class |
ArrayList
Resizable-array implementation of the List interface. |
class |
HashSet
This class implements the Set interface, backed by a hash table (actually a HashMap instance). |
class |
Stack
The Stack class represents a last-in-first-out
(LIFO) stack of objects. |
class |
Vector
The Vector class implements a growable array of
objects. |
Methods in java.util that return Collection | |
Collection |
HashMap.values()
Returns a collection view of the values contained in this map. |
Collection |
AbstractMap.values()
Returns a collection view of the values contained in this map. |
Collection |
Hashtable.values()
Returns a Collection view of the values contained in this Hashtable. |
Collection |
Map.values()
Returns all of the current Map values in a
Collection . |
Methods in java.util with parameters of type Collection | |
boolean |
ArrayList.addAll(Collection 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 |
ArrayList.addAll(int index,
Collection c)
Inserts all of the elements in the specified Collection into this list, starting at the specified position. |
boolean |
AbstractSet.removeAll(Collection c)
Removes from this set all of its elements that are contained in the specified collection (optional operation). |
boolean |
Set.addAll(Collection collection)
Adds the objects in the specified Collection which do not exist in this Set. |
boolean |
Set.containsAll(Collection collection)
Searches this Set for all objects in the specified Collection. |
boolean |
Set.removeAll(Collection collection)
Removes all objects in the specified Collection from this Set. |
boolean |
Set.retainAll(Collection collection)
Removes all objects from this Set that are not contained in the specified Collection. |
boolean |
Vector.containsAll(Collection c)
Returns true if this Vector contains all of the elements in the specified Collection. |
boolean |
Vector.addAll(Collection 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 |
Vector.removeAll(Collection c)
Removes from this Vector all of its elements that are contained in the specified Collection. |
boolean |
Vector.retainAll(Collection c)
Retains only the elements in this Vector that are contained in the specified Collection. |
boolean |
Vector.addAll(int index,
Collection c)
Inserts all of the elements in in the specified Collection into this Vector at the specified position. |
boolean |
AbstractList.addAll(int index,
Collection c)
Inserts all of the elements in the specified collection into this list at the specified position (optional operation). |
boolean |
List.addAll(int location,
Collection collection)
Inserts the objects in the specified Collection at the specified location in this List. |
boolean |
List.addAll(Collection collection)
Adds the objects in the specified Collection to the end of this List. |
boolean |
List.containsAll(Collection collection)
Searches this List for all objects in the specified Collection. |
boolean |
List.removeAll(Collection collection)
Removes all occurrences in this List of each object in the specified Collection. |
boolean |
List.retainAll(Collection collection)
Removes all objects from this List that are not contained in the specified Collection. |
boolean |
AbstractCollection.containsAll(Collection c)
Returns true if this collection contains all of the elements in the specified collection. |
boolean |
AbstractCollection.addAll(Collection c)
Adds all of the elements in the specified collection to this collection (optional operation). |
boolean |
AbstractCollection.removeAll(Collection c)
Removes from this collection all of its elements that are contained in the specified collection (optional operation). |
boolean |
AbstractCollection.retainAll(Collection c)
Retains only the elements in this collection that are contained in the specified collection (optional operation). |
boolean |
Collection.addAll(Collection collection)
Attempts to add all of the objects contained in collection
to the contents of this collection. |
boolean |
Collection.containsAll(Collection collection)
Searches this Collection for all objects in the specified Collection. |
boolean |
Collection.removeAll(Collection collection)
Removes all occurrences in this Collection of each object in the specified Collection. |
boolean |
Collection.retainAll(Collection collection)
Removes all objects from this Collection that are not also found in the contents of collection . |
Constructors in java.util with parameters of type Collection | |
HashSet(Collection c)
Constructs a new set containing the elements in the specified collection. |
|
ArrayList(Collection c)
Constructs a list containing the elements of the specified collection, in the order they are returned by the collection's iterator. |
|
Vector(Collection c)
Constructs a vector containing the elements of the specified collection, in the order they are returned by the collection's iterator. |
|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |