For an overview, API outline, and design rationale, please see:
For a tutorial and programming guide with examples of use of the collections framework, please see:
Modifier and Type | Interface and Description |
---|---|
public interface | |
public interface | Comparator<
the type of objects that may be compared by this comparator T>A comparison function, which imposes a total ordering on some collection of objects. |
public interface | Deque<
the type of elements held in this deque E>A linear collection that supports element insertion and removal at both ends. |
public interface | Enumeration<
the type of elements returned by this enumeration E>An object that implements the Enumeration interface generates a series of elements, one at a time. |
public interface | EventListener
A tagging interface that all event listener interfaces must extend. |
public interface | Formattable
The |
public interface | |
public interface | List<
the type of elements in this list E>An ordered collection, where the user has precise control over where in the list each element is inserted. |
public interface | ListIterator<
the type of elements returned by this list iterator E>An iterator for lists that allows the programmer to traverse the list in either direction, modify the list during iteration, and obtain the iterator's current position in the list. |
public interface | Map<
the type of keys maintained by this map K, the type of mapped values V>An object that maps keys to values. |
public interface | NavigableMap<
the type of keys maintained by this map K, the type of mapped values V>A |
public interface | NavigableSet<
the type of elements maintained by this set E>A |
public interface | Observer
Deprecated
since 9. This interface has been deprecated. See the A class can implement the Observable
class for further information.
Observer interface when it
wants to be informed of changes in observable objects.
|
public interface | PrimitiveIterator<
the type of elements returned by this PrimitiveIterator. The
type must be a wrapper type for a primitive type, such as
T, Integer for the primitive int type.the type of primitive consumer. The type must be a
primitive specialization of T_CONS>java. for
T , such as java. for
Integer .A base type for primitive specializations of |
public interface | Queue<
the type of elements held in this queue E>A collection designed for holding elements prior to processing. |
public interface | RandomAccess
Marker interface used by |
public interface | SequencedCollection<
the type of elements in this collection E>A collection that has a well-defined encounter order, that supports operations at both ends, and that is reversible. |
public interface | SequencedMap<
the type of keys maintained by this map K, the type of mapped values V>A Map that has a well-defined encounter order, that supports operations at both ends, and that is reversible. |
public interface | SequencedSet<
the type of elements in this sequenced set E>A collection that is both a |
public interface | |
public interface | |
public interface | |
public interface | Spliterator<
the type of elements returned by this Spliterator T>An object for traversing and partitioning elements of a source. |
Modifier and Type | Class and Description |
---|---|
public abstract class | AbstractCollection<
the type of elements in this collection E>This class provides a skeletal implementation of the |
public abstract class | AbstractList<
the type of elements in this list E>This class provides a skeletal implementation of the |
public abstract class | AbstractMap<
the type of keys maintained by this map K, the type of mapped values V>This class provides a skeletal implementation of the |
public abstract class | AbstractQueue<
the type of elements held in this queue E>This class provides skeletal implementations of some |
public abstract class | AbstractSequentialList<
the type of elements in this list E>This class provides a skeletal implementation of the |
public abstract class | AbstractSet<
the type of elements maintained by this set E>This class provides a skeletal implementation of the |
public class | ArrayDeque<
the type of elements held in this deque E>Resizable-array implementation of the |
public class | |
pack-priv class | ArrayPrefixHelpers
ForkJoin tasks to perform Arrays.parallelPrefix operations. |
public class | Arrays
This class contains various methods for manipulating arrays (such as sorting and searching). |
pack-priv class | ArraysParallelSortHelpers
Helper utilities for the parallel sort methods in Arrays.parallelSort. |
public class | Base64
This class consists exclusively of static methods for obtaining encoders and decoders for the Base64 encoding scheme. |
public class | BitSet
This class implements a vector of bits that grows as needed. |
public abstract class | Calendar
The |
public class | Collections
This class consists exclusively of static methods that operate on or return collections. |
pack-priv class | CollSer
A unified serialization proxy class for the immutable collections. |
pack-priv class | ComparableTimSort
This is a near duplicate of |
pack-priv class | Comparators
Package private supporting class for |
public class | ConcurrentModificationException
This exception may be thrown by methods that have detected concurrent modification of an object when such modification is not permissible. |
public class | Currency
Represents a currency. |
public class | Date
The class |
public abstract class | Dictionary<
the type of keys K, the type of mapped values V>The |
public class | DoubleSummaryStatistics
A state object for collecting statistics such as count, min, max, sum, and average. |
pack-priv class | DualPivotQuicksort
This class implements powerful and fully optimized versions, both sequential and parallel, of the Dual-Pivot Quicksort algorithm by Vladimir Yaroslavskiy, Jon Bentley and Josh Bloch. |
public class | DuplicateFormatFlagsException
Unchecked exception thrown when duplicate flags are provided in the format specifier. |
public class | EmptyStackException
Thrown by methods in the |
public class | |
public abstract class | |
public abstract class | EventListenerProxy<
the type of T extends EventListener>EventListener being wrappedAn abstract wrapper class for an |
public class | EventObject
The root class from which all event state objects shall be derived. |
public class | FormatFlagsConversionMismatchException
Unchecked exception thrown when a conversion and flag are incompatible. |
public class | FormattableFlags
FormattableFlags are passed to the |
public class | Formatter
An interpreter for printf-style format strings. |
public class | FormatterClosedException
Unchecked exception thrown when the formatter has been closed. |
public class | GregorianCalendar
|
public class | HashMap<
the type of keys maintained by this map K, the type of mapped values V>Hash table based implementation of the |
public class | HashSet<
the type of elements maintained by this set E>This class implements the |
public class | Hashtable<
the type of keys maintained by this map K, the type of mapped values V>This class implements a hash table, which maps keys to values. |
public class | HexFormat
|
public class | IdentityHashMap<
the type of keys maintained by this map K, the type of mapped values V>This class implements the |
pack-priv class | IllegalFormatArgumentIndexException
Unchecked exception thrown when the argument index is not within the valid range of supported argument index values. |
public class | IllegalFormatCodePointException
Unchecked exception thrown when a character with an invalid Unicode code
point as defined by |
public class | IllegalFormatConversionException
Unchecked exception thrown when the argument corresponding to the format specifier is of an incompatible type. |
public class | IllegalFormatException
Unchecked exception thrown when a format string contains an illegal syntax or a format specifier that is incompatible with the given arguments. |
public class | IllegalFormatFlagsException
Unchecked exception thrown when an illegal combination flags is given. |
public class | IllegalFormatPrecisionException
Unchecked exception thrown when the precision is a negative value other than
|
public class | IllegalFormatWidthException
Unchecked exception thrown when the format width is a negative value other
than |
public class | IllformedLocaleException
Thrown by methods in |
pack-priv class | ImmutableCollections
Container class for immutable collections. |
public class | InputMismatchException
Thrown by a |
public class | IntSummaryStatistics
A state object for collecting statistics such as count, min, max, sum, and average. |
public class | InvalidPropertiesFormatException
Thrown to indicate that an operation could not complete because
the input did not conform to the appropriate XML document type
for a collection of properties, as per the |
pack-priv class | JapaneseImperialCalendar
|
pack-priv class | JumboEnumSet<E extends Enum
Private implementation class for EnumSet, for "jumbo" enum types (i.e., those with more than 64 elements). |
pack-priv class | KeyValueHolder<
the key type K, the value type V>An immutable container for a key and a value, suitable for use
in creating and populating |
public class | LinkedHashMap<
the type of keys maintained by this map K, the type of mapped values V>Hash table and linked list implementation of the |
public class | LinkedHashSet<
the type of elements maintained by this set E>Hash table and linked list implementation of the |
public class | LinkedList<
the type of elements held in this collection E>Doubly-linked list implementation of the |
public abstract class | ListResourceBundle
|
public class | Locale
A |
pack-priv class | |
public class | LongSummaryStatistics
A state object for collecting statistics such as count, min, max, sum, and average. |
public class | MissingFormatArgumentException
Unchecked exception thrown when there is a format specifier which does not have a corresponding argument or if an argument index refers to an argument that does not exist. |
public class | MissingFormatWidthException
Unchecked exception thrown when the format width is required. |
public class | MissingResourceException
Signals that a resource is missing. |
public class | NoSuchElementException
Thrown by various accessor methods to indicate that the element being requested does not exist. |
public class | Objects
This class consists of |
public class | Observable
Deprecated
since 9. This class and the This class represents an observable object, or "data"
in the model-view paradigm.
Observer interface have been deprecated.
|
public class | |
public class | OptionalDouble
A container object which may or may not contain a |
public class | OptionalInt
A container object which may or may not contain an |
public class | OptionalLong
A container object which may or may not contain a |
public class | PriorityQueue<
the type of elements held in this queue E>An unbounded priority queue based on a priority heap. |
public class | Properties
The |
public class | PropertyPermission
This class is for property permissions. |
pack-priv class | PropertyPermissionCollection
A PropertyPermissionCollection stores a set of PropertyPermission permissions. |
public class | PropertyResourceBundle
|
public class | Random
An instance of this class is used to generate a stream of pseudorandom numbers; its period is only 248. |
pack-priv class | RegularEnumSet<E extends Enum
Private implementation class for EnumSet, for "regular sized" enum types (i.e., those with 64 or fewer enum constants). |
public abstract class | ResourceBundle
Resource bundles contain locale-specific objects. |
pack-priv class | |
pack-priv class | |
pack-priv class | |
pack-priv class | |
public class | Scanner
A simple text scanner which can parse primitive types and strings using regular expressions. |
public class | ServiceConfigurationError
Error thrown when something goes wrong while locating, loading, or instantiating a service provider. |
public class | ServiceLoader<
The type of the service to be loaded by this loader S>A facility to load implementations of a service. |
public class | SimpleTimeZone
|
public class | Spliterators
Static classes and methods for operating on or creating instances of
|
public class | SplittableRandom
A generator of uniform pseudorandom values (with period 264) applicable for use in (among other contexts) isolated parallel computations that may generate subtasks. |
public class | Stack<
Type of component elements E>The |
public class | StringJoiner
|
public class | StringTokenizer
The string tokenizer class allows an application to break a string into tokens. |
pack-priv class | TaskQueue
This class represents a timer task queue: a priority queue of TimerTasks, ordered on nextExecutionTime. |
public class | Timer
A facility for threads to schedule tasks for future execution in a background thread. |
public abstract class | |
pack-priv class | TimerThread
This "helper class" implements the timer's task execution thread, which waits for tasks on the timer queue, executions them when they fire, reschedules repeating tasks, and removes cancelled tasks and spent non-repeating tasks from the queue. |
public abstract class | TimeZone
|
pack-priv class | TimSort<T>
A stable, adaptive, iterative mergesort that requires far fewer than n lg(n) comparisons when running on partially sorted arrays, while offering performance comparable to a traditional mergesort when run on random arrays. |
public class | TooManyListenersException
The |
public class | TreeMap<
the type of keys maintained by this map K, the type of mapped values V>A Red-Black tree based |
public class | TreeSet<
the type of elements maintained by this set E>A |
pack-priv class | Tripwire
Utility class for detecting inadvertent uses of boxing in
|
public class | UnknownFormatConversionException
Unchecked exception thrown when an unknown conversion is given. |
public class | UnknownFormatFlagsException
Unchecked exception thrown when an unknown flag is given. |
public class | UUID
A class that represents an immutable universally unique identifier (UUID). |
public class | |
public class | WeakHashMap<
the type of keys maintained by this map K, the type of mapped values V>Hash table based implementation of the |