| Package | Description |
|---|---|
| java.util |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Deque<E>
A kind of collection that can insert or remove element at both ends("double
ended queue").
|
interface |
List<E>
A
List is a collection which maintains an ordering for its elements. |
interface |
NavigableSet<E>
NavigableSet is a SortedSet with navigation methods answering the closest
matches for specified item.
|
interface |
Queue<E>
This kind of collection provides advanced operations compared to basic
collections, such as insertion, extraction, and inspection.
|
interface |
Set<E>
A
Set is a data structure which does not allow duplicate elements. |
interface |
SortedSet<E>
SortedSet is a Set which iterates over its elements in a sorted order.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractCollection<E>
Class
AbstractCollection is an abstract implementation of the Collection interface. |
class |
AbstractList<E>
AbstractList is an abstract implementation of the List interface, optimized
for a backing store which supports random access. |
class |
AbstractQueue<E>
AbstractQueue is an abstract class which implements some of the methods in
Queue. |
class |
AbstractSequentialList<E>
AbstractSequentialList is an abstract implementation of the List interface.
|
class |
AbstractSet<E>
An AbstractSet is an abstract implementation of the Set interface.
|
class |
ArrayDeque<E>
An implementation of Deque, backed by an array.
|
class |
ArrayList<E>
ArrayList is an implementation of
List, backed by an array. |
class |
HashSet<E>
HashSet is an implementation of a Set.
|
class |
LinkedHashSet<E>
LinkedHashSet is a variant of HashSet.
|
class |
LinkedList<E>
LinkedList is an implementation of List, backed by a linked list.
|
class |
PriorityQueue<E>
A PriorityQueue holds elements on a priority heap, which orders the elements
according to their natural order or according to the comparator specified at
construction time.
|
class |
Stack<E>
Stack is a Last-In/First-Out(LIFO) data structure which represents a
stack of objects. |
class |
TreeSet<E>
TreeSet is an implementation of SortedSet.
|
class |
Vector<E>
Vector is a variable size contiguous indexable array of objects.
|
| Modifier and Type | Method and Description |
|---|---|
static <E> Collection<E> |
Collections.checkedCollection(Collection<E> c,
Class<E> type)
Returns a dynamically typesafe view of the specified collection.
|
static <T> Collection<T> |
Collections.synchronizedCollection(Collection<T> collection)
Returns a wrapper on the specified collection which synchronizes all
access to the collection.
|
static <E> Collection<E> |
Collections.unmodifiableCollection(Collection<? extends E> collection)
Returns a wrapper on the specified collection which throws an
UnsupportedOperationException whenever an attempt is made to
modify the collection. |
Collection<V> |
TreeMap.values()
Returns a collection of the values contained in this map.
|
Collection<V> |
Map.values()
Returns a
Collection of the values contained in this Map. |
Collection<V> |
LinkedHashMap.values()
Returns a collection of the values contained in this map.
|
Collection<V> |
IdentityHashMap.values()
Returns a collection of the values contained in this map.
|
Collection<V> |
Hashtable.values()
Returns a collection of the values contained in this
Hashtable. |
Collection<V> |
HashMap.values()
Returns a collection of the values contained in this map.
|
Collection<V> |
AbstractMap.values()
Returns a collection of the values contained in this map.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Vector.addAll(Collection<? extends E> collection)
Adds the objects in the specified collection to the end of this vector.
|
boolean |
TreeSet.addAll(Collection<? extends E> collection)
Adds the objects in the specified collection to this
TreeSet. |
boolean |
Set.addAll(Collection<? extends E> collection)
Adds the objects in the specified collection which do not exist yet in
this set.
|
boolean |
List.addAll(Collection<? extends E> collection)
Adds the objects in the specified collection to the end of this
List. |
boolean |
LinkedList.addAll(Collection<? extends E> collection)
Adds the objects in the specified Collection to this
LinkedList. |
boolean |
Collection.addAll(Collection<? extends E> collection)
Attempts to add all of the objects contained in
Collection
to the contents of this Collection (optional). |
boolean |
ArrayList.addAll(Collection<? extends E> collection)
Adds the objects in the specified collection to this
ArrayList. |
boolean |
AbstractQueue.addAll(Collection<? extends E> c)
Adds all the elements of a collection to the queue.
|
boolean |
AbstractCollection.addAll(Collection<? extends E> collection)
Attempts to add all of the objects contained in
collection
to the contents of this Collection (optional). |
static <T> boolean |
Collections.addAll(Collection<? super T> c,
T... a)
Adds all the specified elements to the specified collection.
|
boolean |
Vector.addAll(int location,
Collection<? extends E> collection)
Inserts the objects in the specified collection at the specified location
in this vector.
|
boolean |
List.addAll(int location,
Collection<? extends E> collection)
Inserts the objects in the specified collection at the specified location
in this
List. |
boolean |
LinkedList.addAll(int location,
Collection<? extends E> collection)
Inserts the objects in the specified collection at the specified location
in this
LinkedList. |
boolean |
ArrayList.addAll(int location,
Collection<? extends E> collection)
Inserts the objects in the specified collection at the specified location
in this List.
|
boolean |
AbstractSequentialList.addAll(int location,
Collection<? extends E> collection) |
boolean |
AbstractList.addAll(int location,
Collection<? extends E> collection)
Inserts the objects in the specified Collection at the specified location
in this List.
|
static <E> Collection<E> |
Collections.checkedCollection(Collection<E> c,
Class<E> type)
Returns a dynamically typesafe view of the specified collection.
|
boolean |
Vector.containsAll(Collection<?> collection)
Searches this vector for all objects in the specified collection.
|
boolean |
Set.containsAll(Collection<?> collection)
Searches this set for all objects in the specified collection.
|
boolean |
List.containsAll(Collection<?> collection)
Tests whether this
List contains all objects contained in the
specified collection. |
boolean |
Collection.containsAll(Collection<?> collection)
Tests whether this
Collection contains all objects contained in the
specified Collection. |
boolean |
AbstractCollection.containsAll(Collection<?> collection)
Tests whether this
Collection contains all objects contained in the
specified Collection. |
static boolean |
Collections.disjoint(Collection<?> c1,
Collection<?> c2)
Returns whether the specified collections have no elements in common.
|
static boolean |
Collections.disjoint(Collection<?> c1,
Collection<?> c2)
Returns whether the specified collections have no elements in common.
|
static <T> Enumeration<T> |
Collections.enumeration(Collection<T> collection)
Returns an
Enumeration on the specified collection. |
static int |
Collections.frequency(Collection<?> c,
Object o)
Returns the number of elements in the
Collection that match the
Object passed. |
static <T extends Object & Comparable<? super T>> |
Collections.max(Collection<? extends T> collection)
Searches the specified collection for the maximum element.
|
static <T> T |
Collections.max(Collection<? extends T> collection,
Comparator<? super T> comparator)
Searches the specified collection for the maximum element using the
specified comparator.
|
static <T extends Object & Comparable<? super T>> |
Collections.min(Collection<? extends T> collection)
Searches the specified collection for the minimum element.
|
static <T> T |
Collections.min(Collection<? extends T> collection,
Comparator<? super T> comparator)
Searches the specified collection for the minimum element using the
specified comparator.
|
boolean |
Vector.removeAll(Collection<?> collection)
Removes all occurrences in this vector of each object in the specified
Collection.
|
boolean |
Set.removeAll(Collection<?> collection)
Removes all objects in the specified collection from this set.
|
boolean |
List.removeAll(Collection<?> collection)
Removes all occurrences in this
List of each object in the specified
collection. |
boolean |
Collection.removeAll(Collection<?> collection)
Removes all occurrences in this
Collection of each object in the
specified Collection (optional). |
boolean |
AbstractSet.removeAll(Collection<?> collection)
Removes all occurrences in this collection which are contained in the
specified collection.
|
boolean |
AbstractCollection.removeAll(Collection<?> collection)
Removes all occurrences in this
Collection of each object in the
specified Collection (optional). |
boolean |
Vector.retainAll(Collection<?> collection)
Removes all objects from this vector that are not contained in the
specified collection.
|
boolean |
Set.retainAll(Collection<?> collection)
Removes all objects from this set that are not contained in the specified
collection.
|
boolean |
List.retainAll(Collection<?> collection)
Removes all objects from this
List that are not contained in the
specified collection. |
boolean |
Collection.retainAll(Collection<?> collection)
Removes all objects from this
Collection that are not also found in the
Collection passed (optional). |
boolean |
AbstractCollection.retainAll(Collection<?> collection)
Removes all objects from this
Collection that are not also found in the
Collection passed (optional). |
static <T> Collection<T> |
Collections.synchronizedCollection(Collection<T> collection)
Returns a wrapper on the specified collection which synchronizes all
access to the collection.
|
static <E> Collection<E> |
Collections.unmodifiableCollection(Collection<? extends E> collection)
Returns a wrapper on the specified collection which throws an
UnsupportedOperationException whenever an attempt is made to
modify the collection. |
| Constructor and Description |
|---|
ArrayDeque(Collection<? extends E> c)
Constructs a new instance of ArrayDeque containing the elements of the
specified collection, with the order returned by the collection's
iterator.
|
ArrayList(Collection<? extends E> collection)
Constructs a new instance of
ArrayList containing the elements of
the specified collection. |
HashSet(Collection<? extends E> collection)
Constructs a new instance of
HashSet containing the unique
elements in the specified collection. |
LinkedHashSet(Collection<? extends E> collection)
Constructs a new instance of
LinkedHashSet containing the unique
elements in the specified collection. |
LinkedList(Collection<? extends E> collection)
Constructs a new instance of
LinkedList that holds all of the
elements contained in the specified collection. |
PriorityQueue(Collection<? extends E> c)
Constructs a priority queue that contains the elements of a collection.
|
TreeSet(Collection<? extends E> collection)
Constructs a new instance of
TreeSet which uses natural ordering
and containing the unique elements in the specified collection. |
Vector(Collection<? extends E> collection)
Constructs a new instance of
Vector containing the elements in
collection. |
Copyright © 2025. All rights reserved.