Home » openjdk-7 » java » util »

java.util

Sub Packages:

java.util.concurrent    
java.util.concurrent.atomic    
java.util.concurrent.locks    
java.util.jar   Provides classes for reading and writing the JAR (Java ARchive) file format, which is based on the standard ZIP file format with an optional manifest file.  
java.util.logging   Provides the classes and interfaces of the Java TM 2 platform's core logging facilities.  
java.util.prefs   This package allows applications to store and retrieve user and system preference and configuration data.  
java.util.regex   Classes for matching character sequences against patterns specified by regular expressions.  
java.util.spi   Service provider classes for the classes in the java.util package.  
java.util.zip   Provides classes for reading and writing the standard ZIP and GZIP file formats.  

Interfaces:

Collection   The root interface in the collection hierarchy code | html
Collections.SelfComparable     code | html
Comparator   A comparison function, which imposes a total ordering on some collection of objects.  code | html
Deque   A linear collection that supports element insertion and removal at both ends.  code | html
Enumeration   An object that implements the Enumeration interface generates a series of elements, one at a time.  code | html
EventListener   A tagging interface that all event listener interfaces must extend.  code | html
Formattable   The Formattable interface must be implemented by any class that needs to perform custom formatting using the 's' conversion specifier of java.util.Formatter code | html
Iterator   An iterator over a collection.  code | html
List   An ordered collection (also known as a sequence).  code | html
ListIterator   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.  code | html
Map   An object that maps keys to values.  code | html
Map.Entry   A map entry (key-value pair).  code | html
MapEntry.Type     code | html
NavigableMap   A SortedMap extended with navigation methods returning the closest matches for given search targets.  code | html
NavigableSet   A SortedSet extended with navigation methods reporting closest matches for given search targets.  code | html
Observer   A class can implement the Observer interface when it wants to be informed of changes in observable objects.  code | html
Queue   A collection designed for holding elements prior to processing.  code | html
RandomAccess   Marker interface used by List implementations to indicate that they support fast (generally constant time) random access.  code | html
ResourceBundle.CacheKeyReference   The common interface to get a CacheKey in LoaderReference and BundleReference.  code | html
Set   A collection that contains no duplicate elements.  code | html
SortedMap   A Map that further provides a total ordering on its keys.  code | html
SortedSet   A Set that further provides a total ordering on its elements.  code | html

Abstract Classes:

AbstractCollection   This class provides a skeletal implementation of the Collection interface, to minimize the effort required to implement this interface.  code | html
AbstractHashMap   Implementation of Map interface based on a hash table.  code | html
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).  code | html
AbstractMap   This class provides a skeletal implementation of the Map interface, to minimize the effort required to implement this interface.  code | html
AbstractMapEntry   Basic Map.Entry implementation that implements hashCode, equals, and toString.  code | html
AbstractQueue   This class provides skeletal implementations of some Queue operations.  code | html
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).  code | html
AbstractSet   This class provides a skeletal implementation of the Set interface to minimize the effort required to implement this interface.  code | html
Calendar   The Calendar class is an abstract class that provides methods for converting between a specific instant in time and a set of calendar fields such as YEAR, MONTH, DAY_OF_MONTH, HOUR, and so on, and for manipulating the calendar fields, such as getting the date of the next week.  code | html
Dictionary   The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to values.  code | html
EnumMap.EnumMapIterator     code | html
EnumSet   A specialized Set implementation for use with enum types.  code | html
EventListenerProxy   An abstract wrapper class for an {@code EventListener} class which associates a set of additional parameters with the listener.  code | html
HashMap.HashIterator     code | html
IdentityHashMap.IdentityHashMapIterator     code | html
LinkedHashMap.LinkedHashIterator     code | html
ListResourceBundle   ListResourceBundle is an abstract subclass of ResourceBundle that manages resources for a locale in a convenient and easy to use list.  code | html
ResourceBundle   Resource bundles contain locale-specific objects.  code | html
TimeZone   TimeZone represents a time zone offset, and also figures out daylight savings.  code | html
TimerTask   A task that can be scheduled for one-time or repeated execution by a Timer.  code | html
TreeMap.NavigableSubMap     code | html
TreeMap.NavigableSubMap.EntrySetView     code | html
TreeMap.NavigableSubMap.SubMapIterator   Iterators for SubMaps  code | html
TreeMap.PrivateEntryIterator   Base class for TreeMap Iterators  code | html
WeakHashMap.HashIterator     code | html

Classes:

Formatter.BigDecimalLayoutForm   The enumeration giving the available styles for formatting very large decimal numbers.  code | html
Locale.Category   Enum for locale categories.  code | html
AbstractHashMap.EntrySet     code | html
AbstractHashMap.EntrySetIterator   Iterator for EntrySetImpl code | html
AbstractHashMap.MapEntryNull     code | html
AbstractHashMap.MapEntryString     code | html
AbstractList.Itr     code | html
AbstractList.ListItr     code | html
AbstractMap.SimpleEntry   An Entry maintaining a key and a value.  code | html
AbstractMap.SimpleImmutableEntry   An Entry maintaining an immutable key and value.  code | html
ArrayDeque   Resizable-array implementation of the Deque interface.  code | html
ArrayDeque.DeqIterator     code | html
ArrayDeque.DescendingIterator     code | html
ArrayList   Resizable-array implementation of the List interface.  code | html
ArrayList.Itr   An optimized version of AbstractList.Itr  code | html
ArrayList.ListItr   An optimized version of AbstractList.ListItr  code | html
ArrayList.SubList     code | html
Arrays   This class contains various methods for manipulating arrays (such as sorting and searching).  code | html
Arrays.ArrayList     code | html
Arrays.LegacyMergeSort   Old merge sort implementation can be selected (for compatibility with broken comparators) using a system property.  code | html
BitSet   This class implements a vector of bits that grows as needed.  code | html
Calendar.CalendarAccessControlContext     code | html
Collections   This class consists exclusively of static methods that operate on or return collections.  code | html
Collections.AsLIFOQueue     code | html
Collections.CheckedCollection     code | html
Collections.CheckedList     code | html
Collections.CheckedMap     code | html
Collections.CheckedMap.CheckedEntrySet   We need this class in addition to CheckedSet as Map.Entry permits modification of the backing Map via the setValue operation.  code | html
Collections.CheckedMap.CheckedEntrySet.CheckedEntry   This "wrapper class" serves two purposes: it prevents the client from modifying the backing Map, by short-circuiting the setValue method, and it protects the backing Map against an ill-behaved Map.Entry that attempts to modify another Map.Entry when asked to perform an equality check.  code | html
Collections.CheckedRandomAccessList     code | html
Collections.CheckedSet     code | html
Collections.CheckedSortedMap     code | html
Collections.CheckedSortedSet     code | html
Collections.CopiesList     code | html
Collections.EmptyEnumeration     code | html
Collections.EmptyIterator     code | html
Collections.EmptyList     code | html
Collections.EmptyListIterator     code | html
Collections.EmptyMap     code | html
Collections.EmptySet     code | html
Collections.ReverseComparator     code | html
Collections.ReverseComparator2     code | html
Collections.SetFromMap     code | html
Collections.SingletonList     code | html
Collections.SingletonMap     code | html
Collections.SingletonSet     code | html
Collections.SynchronizedCollection     code | html
Collections.SynchronizedList     code | html
Collections.SynchronizedMap     code | html
Collections.SynchronizedRandomAccessList     code | html
Collections.SynchronizedSet     code | html
Collections.SynchronizedSortedMap     code | html
Collections.SynchronizedSortedSet     code | html
Collections.UnmodifiableCollection     code | html
Collections.UnmodifiableList     code | html
Collections.UnmodifiableMap     code | html
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.  code | html
Collections.UnmodifiableMap.UnmodifiableEntrySet.UnmodifiableEntry   This "wrapper class" serves two purposes: it prevents the client from modifying the backing Map, by short-circuiting the setValue method, and it protects the backing Map against an ill-behaved Map.Entry that attempts to modify another Map Entry when asked to perform an equality check.  code | html
Collections.UnmodifiableRandomAccessList     code | html
Collections.UnmodifiableSet     code | html
Collections.UnmodifiableSortedMap     code | html
Collections.UnmodifiableSortedSet     code | html
ComparableTimSort   This is a near duplicate of TimSort , modified for use with arrays of objects that implement Comparable , instead of using explicit comparators.  code | html
Comparators     code | html
ConcurrentModificationException   This exception may be thrown by methods that have detected concurrent modification of an object when such modification is not permissible.  code | html
Currency   Represents a currency.  code | html
Currency.CurrencyNameGetter   Obtains a localized currency names from a CurrencyNameProvider implementation.  code | html
Date   The class Date represents a specific instant in time, with millisecond precision.  code | html
DualPivotQuicksort   This class implements the Dual-Pivot Quicksort algorithm by Vladimir Yaroslavskiy, Jon Bentley, and Josh Bloch.  code | html
DuplicateFormatFlagsException   Unchecked exception thrown when duplicate flags are provided in the format specifier.  code | html
EmptyStackException   Thrown by methods in the Stack class to indicate that the stack is empty.  code | html
EnumMap   A specialized Map implementation for use with enum type keys.  code | html
EnumMap.EntryIterator     code | html
EnumMap.EntryIterator.Entry     code | html
EnumMap.EntrySet     code | html
EnumMap.KeyIterator     code | html
EnumMap.KeySet     code | html
EnumMap.ValueIterator     code | html
EnumMap.Values     code | html
EnumSet.SerializationProxy   This class is used to serialize all EnumSet instances, regardless of implementation type.  code | html
EventObject  

The root class from which all event state objects shall be derived. 

code | html
FormatFlagsConversionMismatchException   Unchecked exception thrown when a conversion and flag are incompatible.  code | html
FormattableFlags   FomattableFlags are passed to the Formattable.formatTo() method and modify the output format for {@linkplain Formattable Formattables}.  code | html
Formatter  

The {@code Formatter} class is a String-formatting utility that is designed to work like the {@code printf} function of the C programming language. 

code | html
Formatter.DateTimeUtil     code | html
Formatter.FloatUtil     code | html
Formatter.FormatToken     code | html
Formatter.ParserStateMachine     code | html
Formatter.Transformer     code | html
FormatterClosedException   Unchecked exception thrown when the formatter has been closed.  code | html
GregorianCalendar   GregorianCalendar is a concrete subclass of Calendar and provides the standard calendar system used by most of the world.  code | html
HashMap   Hash table based implementation of the Map interface.  code | html
HashMap.Entry     code | html
HashMap.EntryIterator     code | html
HashMap.EntrySet     code | html
HashMap.KeyIterator     code | html
HashMap.KeySet     code | html
HashMap.ValueIterator     code | html
HashMap.Values     code | html
HashSet   This class implements the Set interface, backed by a hash table (actually a HashMap instance).  code | html
Hashtable   This class implements a hash table, which maps keys to values.  code | html
Hashtable.Entry   Hashtable collision list.  code | html
Hashtable.EntrySet     code | html
Hashtable.Enumerator   A hashtable enumerator class.  code | html
Hashtable.KeySet     code | html
Hashtable.ValueCollection     code | html
HugeEnumSet   A concrete EnumSet for enums with more than 64 elements.  code | html
HugeEnumSet.HugeEnumSetIterator     code | html
IdentityHashMap   This class implements the Map interface with a hash table, using reference-equality in place of object-equality when comparing keys (and values).  code | html
IdentityHashMap.EntryIterator     code | html
IdentityHashMap.EntryIterator.Entry     code | html
IdentityHashMap.EntrySet     code | html
IdentityHashMap.KeyIterator     code | html
IdentityHashMap.KeySet     code | html
IdentityHashMap.ValueIterator     code | html
IdentityHashMap.Values     code | html
IllegalFormatCodePointException   Unchecked exception thrown when a character with an invalid Unicode code point as defined by Character#isValidCodePoint is passed to the Formatter code | html
IllegalFormatConversionException   Unchecked exception thrown when the argument corresponding to the format specifier is of an incompatible type.  code | html
IllegalFormatException   Unchecked exception thrown when a format string contains an illegal syntax or a format specifier that is incompatible with the given arguments.  code | html
IllegalFormatFlagsException   Unchecked exception thrown when an illegal combination flags is given.  code | html
IllegalFormatPrecisionException   Unchecked exception thrown when the precision is a negative value other than -1, the conversion does not support a precision, or the value is otherwise unsupported.  code | html
IllegalFormatWidthException   Unchecked exception thrown when the format width is a negative value other than -1 or is otherwise unsupported.  code | html
IllformedLocaleException   Thrown by methods in Locale and Locale.Builder to indicate that an argument is not a well-formed BCP 47 tag.  code | html
InputMismatchException   Thrown by a Scanner to indicate that the token retrieved does not match the pattern for the expected type, or that the token is out of range for the expected type.  code | html
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 Properties specification.

Note, that although InvalidPropertiesFormatException inherits Serializable interface from Exception, it is not intended to be Serializable. 

code | html
JapaneseImperialCalendar   JapaneseImperialCalendar implements a Japanese calendar system in which the imperial era-based year numbering is supported from the Meiji era.  code | html
JumboEnumSet   Private implementation class for EnumSet, for "jumbo" enum types (i.e., those with more than 64 elements).  code | html
JumboEnumSet.EnumSetIterator     code | html
LinkedHashMap  

Hash table and linked list implementation of the Map interface, with predictable iteration order. 

code | html
LinkedHashMap.Entry   LinkedHashMap entry.  code | html
LinkedHashMap.EntryIterator     code | html
LinkedHashMap.KeyIterator     code | html
LinkedHashMap.ValueIterator     code | html
LinkedHashSet  

Hash table and linked list implementation of the Set interface, with predictable iteration order. 

code | html
LinkedList   Doubly-linked list implementation of the {@code List} and {@code Deque} interfaces.  code | html
LinkedList.DescendingIterator   Adapter to provide descending iterators via ListItr.previous  code | html
LinkedList.ListItr     code | html
LinkedList.Node     code | html
Locale   A Locale object represents a specific geographical, political, or cultural region.  code | html
Locale.Builder   Builder is used to build instances of Locale from values configured by the setters.  code | html
Locale.Cache     code | html
Locale.LocaleKey     code | html
Locale.LocaleNameGetter   Obtains a localized locale names from a LocaleNameProvider implementation.  code | html
LocaleData     code | html
LocaleISOData     code | html
MapEntry   MapEntry is an internal class which provides an implementation of Map.Entry.  code | html
MapEntryImpl   An Map.Entry shared by several Map implementations.  code | html
MiniEnumSet   A concrete EnumSet for enums with 64 or fewer elements.  code | html
MiniEnumSet.MiniEnumSetIterator     code | html
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.  code | html
MissingFormatWidthException   Unchecked exception thrown when the format width is required.  code | html
MissingResourceException   Signals that a resource is missing.  code | html
NoSuchElementException   Thrown by the nextElement method of an Enumeration to indicate that there are no more elements in the enumeration.  code | html
Objects   This class consists of {@code static} utility methods for operating on objects.  code | html
Observable   This class represents an observable object, or "data" in the model-view paradigm.  code | html
PriorityQueue   An unbounded priority {@linkplain Queue queue} based on a priority heap.  code | html
PriorityQueue.Itr     code | html
Properties   The Properties class represents a persistent set of properties.  code | html
Properties.LineReader     code | html
PropertyPermission   This class is for property permissions.  code | html
PropertyPermissionCollection   A PropertyPermissionCollection stores a set of PropertyPermission permissions.  code | html
PropertyPermissionCollection   A {@code PermissionCollection} for holding {@code PropertyPermission}s.  code | html
PropertyResourceBundle   PropertyResourceBundle is a concrete subclass of ResourceBundle that manages resources for a locale using a set of static strings from a property file.  code | html
Random   An instance of this class is used to generate a stream of pseudorandom numbers.  code | html
RandomAccessSubList     code | html
RegularEnumSet   Private implementation class for EnumSet, for "regular sized" enum types (i.e., those with 64 or fewer enum constants).  code | html
RegularEnumSet.EnumSetIterator     code | html
ResourceBundle.BundleReference   References to bundles are soft references so that they can be garbage collected when they have no hard references.  code | html
ResourceBundle.CacheKey   Key used for cached resource bundles.  code | html
ResourceBundle.Control   ResourceBundle.Control defines a set of callback methods that are invoked by the ResourceBundle.getBundle factory methods during the bundle loading process.  code | html
ResourceBundle.Control.CandidateListCache     code | html
ResourceBundle.LoaderReference   References to class loaders are weak references, so that they can be garbage collected when nobody else is using them.  code | html
ResourceBundle.NoFallbackControl     code | html
ResourceBundle.RBClassLoader   A wrapper of ClassLoader.getSystemClassLoader().  code | html
ResourceBundle.SingleFormatControl     code | html
Scanner   A simple text scanner which can parse primitive types and strings using regular expressions.  code | html
ServiceConfigurationError   Error thrown when something goes wrong while loading a service provider.  code | html
ServiceLoader   A simple service-provider loading facility.  code | html
ServiceLoader.LazyIterator     code | html
SimpleTimeZone   SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for use with a Gregorian calendar.  code | html
Stack   The Stack class represents a last-in-first-out (LIFO) stack of objects.  code | html
StringTokenizer   The string tokenizer class allows an application to break a string into tokens.  code | html
SubList     code | html
TaskQueue   This class represents a timer task queue: a priority queue of TimerTasks, ordered on nextExecutionTime.  code | html
TimSort   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.  code | html
TimeZone.DisplayNames     code | html
TimeZones     code | html
Timer   A facility for threads to schedule tasks for future execution in a background thread.  code | html
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.  code | html
TooManyListenersException  

The TooManyListenersException Exception is used as part of the Java Event model to annotate and implement a unicast special case of a multicast Event Source. 

code | html
TreeMap   A Red-Black tree based NavigableMap implementation.  code | html
TreeMap.AscendingSubMap     code | html
TreeMap.AscendingSubMap.AscendingEntrySetView     code | html
TreeMap.DescendingKeyIterator     code | html
TreeMap.DescendingSubMap     code | html
TreeMap.DescendingSubMap.DescendingEntrySetView     code | html
TreeMap.Entry   Node in the Tree.  code | html
TreeMap.EntryIterator     code | html
TreeMap.EntrySet     code | html
TreeMap.KeyIterator     code | html
TreeMap.KeySet     code | html
TreeMap.NavigableSubMap.DescendingSubMapEntryIterator     code | html
TreeMap.NavigableSubMap.DescendingSubMapKeyIterator     code | html
TreeMap.NavigableSubMap.SubMapEntryIterator     code | html
TreeMap.NavigableSubMap.SubMapKeyIterator     code | html
TreeMap.SubMap   This class exists solely for the sake of serialization compatibility with previous releases of TreeMap that did not support NavigableMap.  code | html
TreeMap.ValueIterator     code | html
TreeMap.Values     code | html
TreeSet   A NavigableSet implementation based on a TreeMap code | html
UUID   A class that represents an immutable universally unique identifier (UUID).  code | html
UnknownFormatConversionException   Unchecked exception thrown when an unknown conversion is given.  code | html
UnknownFormatFlagsException   Unchecked exception thrown when an unknown flag is given.  code | html
Utility     code | html
VMTimeZone     code | html
Vector   The {@code Vector} class implements a growable array of objects.  code | html
Vector.Itr   An optimized version of AbstractList.Itr  code | html
Vector.ListItr   An optimized version of AbstractList.ListItr  code | html
WeakHashMap   Hash table based implementation of the Map interface, with weak keys code | html
WeakHashMap.Entry   The entries in this hash table extend WeakReference, using its main ref field as the key.  code | html
WeakHashMap.EntryIterator     code | html
WeakHashMap.EntrySet     code | html
WeakHashMap.KeyIterator     code | html
WeakHashMap.KeySet     code | html
WeakHashMap.ValueIterator     code | html
WeakHashMap.Values     code | html
XMLUtils   A class used to aid in Properties load and save in XML.  code | html
XMLUtils.EH     code | html
XMLUtils.Resolver     code | html