|
FlexDoc/Javadoc 2.0 Demo Java Doc |
Packages that use Collection |
|
Contains the collections framework, some internationalization support classes,
a service loader, properties, random number generation, string parsing
and scanning classes, base64 encoding and decoding, a bit array, and
several miscellaneous utility classes.
|
|
Utility classes commonly useful in concurrent programming.
|
Uses of Collection in java.util |
Subinterfaces of Collection in java.util |
|
interface |
A linear collection that supports element insertion and removal at
both ends.
|
interface |
An ordered collection (also known as a sequence).
|
interface |
A SortedSet extended with navigation methods reporting
closest matches for given search targets.
|
interface |
A collection designed for holding elements prior to processing.
|
interface |
A collection that contains no duplicate elements.
|
interface |
A Set that further provides a total ordering on its elements.
|
Classes in java.util that implement Collection |
|
abstract class |
This class provides a skeletal implementation of the Collection
interface, to minimize the effort required to implement this interface.
|
abstract class |
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).
|
abstract class |
This class provides skeletal implementations of some Queue
operations.
|
abstract class |
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).
|
abstract class |
This class provides a skeletal implementation of the Set
interface to minimize the effort required to implement this
interface.
|
class |
Resizable-array implementation of the Deque interface.
|
class |
Resizable-array implementation of the List interface.
|
abstract class |
A specialized Set implementation for use with enum types.
|
class |
This class implements the Set interface, backed by a hash table
(actually a HashMap instance).
|
class |
Hash table and linked list implementation of the Set interface,
with predictable iteration order.
|
class |
Doubly-linked list implementation of the List and Deque
interfaces.
|
class |
An unbounded priority queue based on a priority heap.
|
class |
The Stack class represents a last-in-first-out
(LIFO) stack of objects.
|
class |
A NavigableSet implementation based on a TreeMap.
|
class |
The Vector class implements a growable array of
objects.
|
Methods in java.util that return Collection |
|
AbstractMap.values()
Returns a Collection view of the values contained in this map.
|
|
Returns a dynamically typesafe view of the specified collection.
|
|
Returns a synchronized (thread-safe) collection backed by the specified
collection.
|
|
Returns an unmodifiable view of the
specified collection.
|
|
EnumMap.values()
Returns a Collection view of the values contained in this map.
|
|
HashMap.values()
Returns a Collection view of the values contained in this map.
|
|
Hashtable.values()
Returns a Collection view of the values contained in this map.
|
|
IdentityHashMap.values()
Returns a Collection view of the values contained in this map.
|
|
LinkedHashMap.values()
Returns a Collection view of the values contained in this map.
|
|
Map.values()
Returns a Collection view of the values contained in this map.
|
|
Properties.values()
Returns a Collection view of the values contained in this map.
|
|
SortedMap.values()
Returns a Collection view of the values contained in this map.
|
|
TreeMap.values()
Returns a Collection view of the values contained in this map.
|
|
WeakHashMap.values()
Returns a Collection view of the values contained in this map.
|
Methods in java.util with parameters of type Collection |
|
boolean |
Adds all of the elements in the specified collection to this collection
(optional operation).
|
boolean |
AbstractCollection.containsAll(Collection<?> c)
Returns true if this collection contains all of the elements
in the specified collection.
|
boolean |
AbstractCollection.removeAll(Collection<?> c)
Removes all of this collection's elements that are also 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 |
Inserts all of the elements in the specified collection into this
list at the specified position (optional operation).
|
boolean |
Adds all of the elements in the specified collection to this
queue.
|
boolean |
Inserts all of the elements in the specified collection into this
list at the specified position (optional operation).
|
boolean |
AbstractSet.removeAll(Collection<?> c)
Removes from this set all of its elements that are contained in the
specified collection (optional operation).
|
boolean |
Adds all of the elements in the specified collection at the end
of this deque, as if by calling ArrayDeque.addLast(E) on each one,
in the order that they are returned by the collection's iterator.
|
boolean |
ArrayDeque.removeAll(Collection<?> c)
Removes all of this collection's elements that are also contained in the
specified collection (optional operation).
|
boolean |
ArrayDeque.retainAll(Collection<?> c)
Retains only the elements in this collection that are contained in the
specified collection (optional operation).
|
boolean |
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 |
Inserts all of the elements in the specified collection into this
list, starting at the specified position.
|
boolean |
ArrayList.removeAll(Collection<?> c)
Removes from this list all of its elements that are contained in the
specified collection.
|
boolean |
ArrayList.retainAll(Collection<?> c)
Retains only the elements in this list that are contained in the
specified collection.
|
boolean |
Adds all of the elements in the specified collection to this collection
(optional operation).
|
boolean |
Collection.containsAll(Collection<?> c)
Returns true if this collection contains all of the elements
in the specified collection.
|
boolean |
Collection.removeAll(Collection<?> c)
Removes all of 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).
|
static <T> boolean |
Adds all of the specified elements to the specified collection.
|
Returns a dynamically typesafe view of the specified collection.
|
|
static boolean |
Returns true if the two specified collections have no
elements in common.
|
Returns an enumeration over the specified collection.
|
|
static int |
Returns the number of elements in the specified collection equal to the
specified object.
|
Returns the maximum element of the given collection, according to the
natural ordering of its elements.
|
|
Returns the maximum element of the given collection, according to the
order induced by the specified comparator.
|
|
Returns the minimum element of the given collection, according to the
natural ordering of its elements.
|
|
Returns the minimum element of the given collection, according to the
order induced by the specified comparator.
|
|
Returns a synchronized (thread-safe) collection backed by the specified
collection.
|
|
Returns an unmodifiable view of the
specified collection.
|
|
boolean |
Adds all of the elements in the specified collection at the end
of this deque, as if by calling Deque.addLast(E) on each one,
in the order that they are returned by the collection's iterator.
|
Creates an enum set initialized from the specified collection.
|
|
boolean |
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 |
Inserts all of the elements in the specified collection into this
list, starting at the specified position.
|
boolean |
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 |
Inserts all of the elements in the specified collection into this
list at the specified position (optional operation).
|
boolean |
List.containsAll(Collection<?> c)
Returns true if this list contains all of the elements of the
specified collection.
|
Returns an unmodifiable List containing the elements of
the given Collection, in its iteration order.
|
|
boolean |
List.removeAll(Collection<?> c)
Removes from this list all of its 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).
|
Returns a list of matching Locale instances using the filtering
mechanism defined in RFC 4647.
|
|
Locale.filter(List<Locale.LanguageRange> priorityList, Collection<Locale> locales, Locale.FilteringMode mode)
Returns a list of matching Locale instances using the filtering
mechanism defined in RFC 4647.
|
|
Returns a list of matching languages tags using the basic filtering
mechanism defined in RFC 4647.
|
|
Locale.filterTags(List<Locale.LanguageRange> priorityList, Collection<String> tags, Locale.FilteringMode mode)
Returns a list of matching languages tags using the basic filtering
mechanism defined in RFC 4647.
|
|
static Locale |
Returns a Locale instance for the best-matching language
tag using the lookup mechanism defined in RFC 4647.
|
static String |
Returns the best-matching language tag using the lookup mechanism
defined in RFC 4647.
|
boolean |
PriorityQueue.removeAll(Collection<?> c)
Removes all of this collection's elements that are also contained in the
specified collection (optional operation).
|
boolean |
PriorityQueue.retainAll(Collection<?> c)
Retains only the elements in this collection that are contained in the
specified collection (optional operation).
|
boolean |
Adds all of the elements in the specified collection to this set if
they're not already present (optional operation).
|
boolean |
Set.containsAll(Collection<?> c)
Returns true if this set contains all of the elements of the
specified collection.
|
Returns an unmodifiable Set containing the elements
of the given Collection.
|
|
boolean |
Set.removeAll(Collection<?> c)
Removes from this set all of its elements that are contained in the
specified collection (optional operation).
|
boolean |
Set.retainAll(Collection<?> c)
Retains only the elements in this set that are contained in the
specified collection (optional operation).
|
Creates a Spliterator using the given collection's
Collection.iterator() as the source of elements, and
reporting its Collection.size() as its initial size.
|
|
boolean |
Adds all of the elements in the specified collection to this set.
|
boolean |
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 |
Inserts all of the elements in the specified Collection into this
Vector at the specified position.
|
boolean |
Vector.containsAll(Collection<?> c)
Returns true if this Vector contains all of the elements in the
specified Collection.
|
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.
|
Constructors in java.util with parameters of type Collection |
|
Constructs a deque containing the elements of the specified
collection, in the order they are returned by the collection's
iterator.
|
|
Constructs a list containing the elements of the specified
collection, in the order they are returned by the collection's
iterator.
|
|
Constructs a new set containing the elements in the specified
collection.
|
|
Constructs a new linked hash set with the same elements as the
specified collection.
|
|
Constructs a list containing the elements of the specified
collection, in the order they are returned by the collection's
iterator.
|
|
Creates a PriorityQueue containing the elements in the
specified collection.
|
|
Constructs a new tree set containing the elements in the specified
collection, sorted according to the natural ordering of its
elements.
|
|
Constructs a vector containing the elements of the specified
collection, in the order they are returned by the collection's
iterator.
|
Uses of Collection in java.util.concurrent |
Subinterfaces of Collection in java.util.concurrent |
|
interface |
A Deque that additionally supports blocking operations that wait
for the deque to become non-empty when retrieving an element, and wait for
space to become available in the deque when storing an element.
|
interface |
A Queue that additionally supports operations that wait for
the queue to become non-empty when retrieving an element, and wait
for space to become available in the queue when storing an element.
|
interface |
A BlockingQueue in which producers may wait for consumers
to receive elements.
|
Classes in java.util.concurrent that implement Collection |
|
class |
A bounded blocking queue backed by an
array.
|
static class |
A view of a ConcurrentHashMap as a Set of keys, in
which additions may optionally be enabled by mapping to a
common value.
|
class |
An unbounded concurrent deque based on linked nodes.
|
class |
An unbounded thread-safe queue based on linked nodes.
|
class |
A scalable concurrent NavigableSet implementation based on
a ConcurrentSkipListMap.
|
class |
A thread-safe variant of ArrayList in which all mutative
operations (add, set, and so on) are implemented by
making a fresh copy of the underlying array.
|
class |
A Set that uses an internal CopyOnWriteArrayList
for all of its operations.
|
class |
DelayQueue<E extends Delayed>
An unbounded blocking queue of
Delayed elements, in which an element can only be taken
when its delay has expired.
|
class |
An optionally-bounded blocking deque based on
linked nodes.
|
class |
An optionally-bounded blocking queue based on
linked nodes.
|
class |
An unbounded TransferQueue based on linked nodes.
|
class |
An unbounded blocking queue that uses
the same ordering rules as class PriorityQueue and supplies
blocking retrieval operations.
|
class |
A blocking queue in which each insert
operation must wait for a corresponding remove operation by another
thread, and vice versa.
|
Methods in java.util.concurrent that return Collection |
|
ConcurrentHashMap.values()
Returns a Collection view of the values contained in this map.
|
|
ConcurrentSkipListMap.values()
Returns a Collection view of the values contained in this map.
|
|
Forks all tasks in the specified collection, returning when
isDone holds for each task or an (unchecked) exception
is encountered, in which case the exception is rethrown.
|
|
protected Collection<Thread> |
Semaphore.getQueuedThreads()
Returns a collection containing threads that may be waiting to acquire.
|
Methods in java.util.concurrent with parameters of type Collection |
|
Executes the given tasks, returning a list of Futures holding
their status and results when all complete.
|
|
AbstractExecutorService.invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)
Executes the given tasks, returning a list of Futures holding
their status and results
when all complete or the timeout expires, whichever happens first.
|
|
Executes the given tasks, returning the result
of one that has completed successfully (i.e., without throwing
an exception), if any do.
|
|
AbstractExecutorService.invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)
Executes the given tasks, returning the result
of one that has completed successfully (i.e., without throwing
an exception), if any do before the given timeout elapses.
|
|
int |
Removes all available elements from this queue and adds them
to the given collection.
|
int |
Removes at most the given number of available elements from
this queue and adds them to the given collection.
|
boolean |
ArrayBlockingQueue.removeAll(Collection<?> c)
Removes all of this collection's elements that are also contained in the
specified collection (optional operation).
|
boolean |
ArrayBlockingQueue.retainAll(Collection<?> c)
Retains only the elements in this collection that are contained in the
specified collection (optional operation).
|
int |
Removes all available elements from this queue and adds them
to the given collection.
|
int |
Removes at most the given number of available elements from
this queue and adds them to the given collection.
|
boolean |
Adds all of the elements in the specified collection to this set,
as if by calling ConcurrentHashMap.KeySetView.add(K) on each one.
|
final boolean |
ConcurrentHashMap.KeySetView.containsAll(Collection<?> c)
Returns true if this collection contains all of the elements
in the specified collection.
|
boolean |
ConcurrentHashMap.KeySetView.removeAll(Collection<?> c)
Removes all of this collection's elements that are also contained in the
specified collection (optional operation).
|
final boolean |
ConcurrentHashMap.KeySetView.retainAll(Collection<?> c)
Retains only the elements in this collection that are contained in the
specified collection (optional operation).
|
boolean |
Appends all of the elements in the specified collection to the end of
this deque, in the order that they are returned by the specified
collection's iterator.
|
boolean |
ConcurrentLinkedDeque.removeAll(Collection<?> c)
Removes all of this collection's elements that are also contained in the
specified collection (optional operation).
|
boolean |
ConcurrentLinkedDeque.retainAll(Collection<?> c)
Retains only the elements in this collection that are contained in the
specified collection (optional operation).
|
boolean |
Appends all of the elements in the specified collection to the end of
this queue, in the order that they are returned by the specified
collection's iterator.
|
boolean |
ConcurrentLinkedQueue.removeAll(Collection<?> c)
Removes all of this collection's elements that are also contained in the
specified collection (optional operation).
|
boolean |
ConcurrentLinkedQueue.retainAll(Collection<?> c)
Retains only the elements in this collection that are contained in the
specified collection (optional operation).
|
boolean |
ConcurrentSkipListSet.removeAll(Collection<?> c)
Removes from this set all of its elements that are contained in
the specified collection.
|
boolean |
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 |
Inserts all of the elements in the specified collection into this
list, starting at the specified position.
|
int |
Appends all of the elements in the specified collection that
are not already contained in this list, to the end of
this list, in the order that they are returned by the
specified collection's iterator.
|
boolean |
CopyOnWriteArrayList.containsAll(Collection<?> c)
Returns true if this list contains all of the elements of the
specified collection.
|
boolean |
CopyOnWriteArrayList.removeAll(Collection<?> c)
Removes from this list all of its elements that are contained in
the specified collection.
|
boolean |
CopyOnWriteArrayList.retainAll(Collection<?> c)
Retains only the elements in this list that are contained in the
specified collection.
|
boolean |
Adds all of the elements in the specified collection to this set if
they're not already present.
|
boolean |
CopyOnWriteArraySet.containsAll(Collection<?> c)
Returns true if this set contains all of the elements of the
specified collection.
|
boolean |
CopyOnWriteArraySet.removeAll(Collection<?> c)
Removes from this set all of its elements that are contained in the
specified collection.
|
boolean |
CopyOnWriteArraySet.retainAll(Collection<?> c)
Retains only the elements in this set that are contained in the
specified collection.
|
int |
Removes all available elements from this queue and adds them
to the given collection.
|
int |
Removes at most the given number of available elements from
this queue and adds them to the given collection.
|
Executes the given tasks, returning a list of Futures holding
their status and results when all complete.
|
|
Executes the given tasks, returning a list of Futures holding
their status and results
when all complete or the timeout expires, whichever happens first.
|
|
Executes the given tasks, returning the result
of one that has completed successfully (i.e., without throwing
an exception), if any do.
|
|
Executes the given tasks, returning the result
of one that has completed successfully (i.e., without throwing
an exception), if any do before the given timeout elapses.
|
|
protected int |
Removes all available unexecuted submitted and forked tasks
from scheduling queues and adds them to the given collection,
without altering their execution status.
|
Executes the given tasks, returning a list of Futures holding
their status and results when all complete.
|
|
Executes the given tasks, returning a list of Futures holding
their status and results
when all complete or the timeout expires, whichever happens first.
|
|
Executes the given tasks, returning the result
of one that has completed successfully (i.e., without throwing
an exception), if any do.
|
|
Executes the given tasks, returning the result
of one that has completed successfully (i.e., without throwing
an exception), if any do before the given timeout elapses.
|
|
Forks all tasks in the specified collection, returning when
isDone holds for each task or an (unchecked) exception
is encountered, in which case the exception is rethrown.
|
|
boolean |
Appends all of the elements in the specified collection to the end of
this deque, in the order that they are returned by the specified
collection's iterator.
|
int |
Removes all available elements from this queue and adds them
to the given collection.
|
int |
Removes at most the given number of available elements from
this queue and adds them to the given collection.
|
boolean |
LinkedBlockingDeque.removeAll(Collection<?> c)
Removes all of this collection's elements that are also contained in the
specified collection (optional operation).
|
boolean |
LinkedBlockingDeque.retainAll(Collection<?> c)
Retains only the elements in this collection that are contained in the
specified collection (optional operation).
|
int |
Removes all available elements from this queue and adds them
to the given collection.
|
int |
Removes at most the given number of available elements from
this queue and adds them to the given collection.
|
boolean |
LinkedBlockingQueue.removeAll(Collection<?> c)
Removes all of this collection's elements that are also contained in the
specified collection (optional operation).
|
boolean |
LinkedBlockingQueue.retainAll(Collection<?> c)
Retains only the elements in this collection that are contained in the
specified collection (optional operation).
|
int |
Removes all available elements from this queue and adds them
to the given collection.
|
int |
Removes at most the given number of available elements from
this queue and adds them to the given collection.
|
boolean |
LinkedTransferQueue.removeAll(Collection<?> c)
Removes all of this collection's elements that are also contained in the
specified collection (optional operation).
|
boolean |
LinkedTransferQueue.retainAll(Collection<?> c)
Retains only the elements in this collection that are contained in the
specified collection (optional operation).
|
int |
Removes all available elements from this queue and adds them
to the given collection.
|
int |
Removes at most the given number of available elements from
this queue and adds them to the given collection.
|
boolean |
PriorityBlockingQueue.removeAll(Collection<?> c)
Removes all of this collection's elements that are also contained in the
specified collection (optional operation).
|
boolean |
PriorityBlockingQueue.retainAll(Collection<?> c)
Retains only the elements in this collection that are contained in the
specified collection (optional operation).
|
boolean |
SynchronousQueue.containsAll(Collection<?> c)
Returns false unless the given collection is empty.
|
int |
Removes all available elements from this queue and adds them
to the given collection.
|
int |
Removes at most the given number of available elements from
this queue and adds them to the given collection.
|
boolean |
SynchronousQueue.removeAll(Collection<?> c)
Always returns false.
|
boolean |
SynchronousQueue.retainAll(Collection<?> c)
Always returns false.
|
Constructors in java.util.concurrent with parameters of type Collection |
|
Creates an ArrayBlockingQueue with the given (fixed)
capacity, the specified access policy and initially containing the
elements of the given collection,
added in traversal order of the collection's iterator.
|
|
Constructs a deque initially containing the elements of
the given collection, added in traversal order of the
collection's iterator.
|
|
Creates a ConcurrentLinkedQueue
initially containing the elements of the given collection,
added in traversal order of the collection's iterator.
|
|
Constructs a new set containing the elements in the specified
collection, that orders its elements according to their
natural ordering.
|
|
Creates a list containing the elements of the specified
collection, in the order they are returned by the collection's
iterator.
|
|
Creates a set containing all of the elements of the specified
collection.
|
|
Creates a DelayQueue initially containing the elements of the
given collection of Delayed instances.
|
|
Creates a LinkedBlockingDeque with a capacity of
Integer.MAX_VALUE, initially containing the elements of
the given collection, added in traversal order of the
collection's iterator.
|
|
Creates a LinkedBlockingQueue with a capacity of
Integer.MAX_VALUE, initially containing the elements of the
given collection,
added in traversal order of the collection's iterator.
|
|
Creates a LinkedTransferQueue
initially containing the elements of the given collection,
added in traversal order of the collection's iterator.
|
|
Creates a PriorityBlockingQueue containing the elements
in the specified collection.
|
|
FlexDoc/Javadoc 2.0 Demo Java Doc |