|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Collection | |
java.awt | |
java.io | |
java.util |
Uses of Collection in java.awt |
Methods in java.awt that return Collection | |
Collection |
RenderingHints.values()
Returns a Collection view of the values
contained in this RenderinHints . |
Uses of Collection in java.io |
Classes in java.io that implement Collection | |
(package private) static class |
ObjectOutputStream.Stack
Unsynchronized Stack. |
Uses of Collection in java.util |
Subinterfaces of Collection in java.util | |
interface |
List
An ordered collection (also known as a sequence). |
interface |
Set
A collection that contains no duplicate elements. |
interface |
SortedSet
A set that further guarantees that its iterator will traverse the set in ascending element order, sorted according to the natural ordering of its elements (see Comparable), or by a Comparator provided at sorted set creation time. |
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 |
AbstractSequentialList
This class provides a skeletal implementation of the List interface to minimize the effort required to implement this interface backed by a "sequential access" data store (such as a linked list). |
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. |
private static class |
Arrays.ArrayList
|
(package private) static class |
Collections.SynchronizedCollection
|
(package private) static class |
Collections.SynchronizedList
|
(package private) static class |
Collections.SynchronizedSet
|
(package private) static class |
Collections.SynchronizedSortedSet
|
(package private) static class |
Collections.UnmodifiableCollection
|
(package private) static class |
Collections.UnmodifiableList
|
(package private) static class |
Collections.UnmodifiableMap.UnmodifiableEntrySet
We need this class in addition to UnmodifiableSet as Map.Entries themselves permit modification of the backing Map via their setValue operation. |
(package private) static class |
Collections.UnmodifiableSet
|
(package private) static class |
Collections.UnmodifiableSortedSet
|
class |
HashSet
This class implements the Set interface, backed by a hash table (actually a HashMap instance). |
private class |
Hashtable.EntrySet
|
private class |
Hashtable.KeySet
|
private class |
Hashtable.ValueCollection
|
class |
LinkedList
Linked list implementation of the List interface. |
class |
Stack
The Stack class represents a last-in-first-out
(LIFO) stack of objects. |
(package private) class |
SubList
|
private class |
TreeMap.SubMap.EntrySetView
|
class |
TreeSet
This class implements the Set interface, backed by a TreeMap instance. |
class |
Vector
The Vector class implements a growable array of
objects. |
private class |
WeakHashMap.EntrySet
|
Fields in java.util declared as Collection | |
private Collection |
AbstractMap.values
|
private Collection |
HashMap.values
|
(package private) Collection |
Collections.UnmodifiableCollection.c
|
private Collection |
Collections.UnmodifiableMap.values
|
(package private) Collection |
Collections.SynchronizedCollection.c
|
private Collection |
Collections.SynchronizedMap.values
|
private Collection |
Hashtable.values
|
private Collection |
TreeMap.values
|
Methods in java.util that return Collection | |
Collection |
AbstractMap.values()
Returns a collection view of the values contained in this map. |
Collection |
HashMap.values()
Returns a collection view of the values contained in this map. |
static Collection |
Collections.unmodifiableCollection(Collection c)
Returns an unmodifiable view of the specified collection. |
static Collection |
Collections.synchronizedCollection(Collection c)
Returns a synchronized (thread-safe) collection backed by the specified collection. |
(package private) static Collection |
Collections.synchronizedCollection(Collection c,
Object mutex)
|
Collection |
Collections.UnmodifiableMap.values()
|
Collection |
Collections.SynchronizedMap.values()
|
Collection |
Map.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 |
TreeMap.values()
Returns a collection view of the values contained in this map. |
Methods in java.util with parameters of type 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 |
Set.containsAll(Collection c)
Returns true if this set contains all of the elements of the specified collection. |
boolean |
Set.addAll(Collection c)
Adds all of the elements in the specified collection to this set if they're not already present (optional operation). |
boolean |
Set.retainAll(Collection c)
Retains only the elements in this set that are contained in the specified collection (optional operation). |
boolean |
Set.removeAll(Collection c)
Removes from this set all of its elements that are contained in the specified collection (optional operation). |
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 |
AbstractSequentialList.addAll(int index,
Collection c)
Inserts all of the elements in in the specified collection into this list at the specified position. |
static Object |
Collections.min(Collection coll)
Returns the minimum element of the given collection, according to the natural ordering of its elements. |
static Object |
Collections.min(Collection coll,
Comparator comp)
Returns the minimum element of the given collection, according to the order induced by the specified comparator. |
static Object |
Collections.max(Collection coll)
Returns the maximum element of the given collection, according to the natural ordering of its elements. |
static Object |
Collections.max(Collection coll,
Comparator comp)
Returns the maximum element of the given collection, according to the order induced by the specified comparator. |
static Collection |
Collections.unmodifiableCollection(Collection c)
Returns an unmodifiable view of the specified collection. |
static Collection |
Collections.synchronizedCollection(Collection c)
Returns a synchronized (thread-safe) collection backed by the specified collection. |
(package private) static Collection |
Collections.synchronizedCollection(Collection c,
Object mutex)
|
static Enumeration |
Collections.enumeration(Collection c)
Returns an enumeration over the specified collection. |
boolean |
Collections.UnmodifiableCollection.containsAll(Collection coll)
|
boolean |
Collections.UnmodifiableCollection.addAll(Collection coll)
|
boolean |
Collections.UnmodifiableCollection.removeAll(Collection coll)
|
boolean |
Collections.UnmodifiableCollection.retainAll(Collection coll)
|
boolean |
Collections.UnmodifiableList.addAll(int index,
Collection c)
|
boolean |
Collections.UnmodifiableMap.UnmodifiableEntrySet.containsAll(Collection coll)
The next two methods are overridden to protect against an unscrupulous List whose contains(Object o) method senses when o is a Map.Entry, and calls o.setValue. |
boolean |
Collections.SynchronizedCollection.containsAll(Collection coll)
|
boolean |
Collections.SynchronizedCollection.addAll(Collection coll)
|
boolean |
Collections.SynchronizedCollection.removeAll(Collection coll)
|
boolean |
Collections.SynchronizedCollection.retainAll(Collection coll)
|
boolean |
Collections.SynchronizedList.addAll(int index,
Collection c)
|
boolean |
TreeSet.addAll(Collection c)
Adds all of the elements in the specified collection to this set. |
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 |
LinkedList.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 |
LinkedList.addAll(int index,
Collection c)
Inserts all of the elements in the specified collection into this list, starting at the specified position. |
boolean |
Collection.containsAll(Collection c)
Returns true if this collection contains all of the elements in the specified collection. |
boolean |
Collection.addAll(Collection c)
Adds all of the elements in the specified collection to this collection (optional operation). |
boolean |
Collection.removeAll(Collection c)
Removes all this collection's elements that are also 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 |
List.containsAll(Collection c)
Returns true if this list contains all of the elements of the specified collection. |
boolean |
List.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 (optional operation). |
boolean |
List.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.removeAll(Collection c)
Removes from this list all the elements 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 |
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 |
SubList.addAll(Collection c)
|
boolean |
SubList.addAll(int index,
Collection c)
|
Constructors in java.util with parameters of type Collection | |
Collections.UnmodifiableCollection.Collections.UnmodifiableCollection(Collection c)
|
|
Collections.SynchronizedCollection.Collections.SynchronizedCollection(Collection c)
|
|
Collections.SynchronizedCollection.Collections.SynchronizedCollection(Collection c,
Object mutex)
|
|
TreeSet.TreeSet(Collection c)
Constructs a new set containing the elements in the specified collection, sorted according to the elements' natural order. |
|
Vector.Vector(Collection c)
Constructs a vector containing the elements of the specified collection, in the order they are returned by the collection's iterator. |
|
LinkedList.LinkedList(Collection c)
Constructs a list containing the elements of the specified collection, in the order they are returned by the collection's iterator. |
|
HashSet.HashSet(Collection c)
Constructs a new set containing the elements in the specified collection. |
|
ArrayList.ArrayList(Collection c)
Constructs a list containing the elements of the specified collection, in the order they are returned by the collection's iterator. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |