Package java.util
-
Interface Summary Interface Description Collection<E> Collectionis the root of the collection hierarchy.Comparator<T> AComparatoris used to compare two objects to determine their ordering with respect to each other.Deque<E> A linear collection that supports element insertion and removal at both ends.Enumeration<E> A legacy iteration interface.EventListener EventListener is the superclass of all event listener interfaces.Formattable Classes that handle custom formatting for the 's' specifier ofFormattershould implement theFormattableinterface.Iterator<E> An iterator over a sequence of objects, such as a collection.List<E> AListis a collection which maintains an ordering for its elements.ListIterator<E> An ListIterator is used to sequence over a List of objects.Map<K,V> AMapis a data structure consisting of a set of keys and values in which each key is mapped to a single value.Map.Entry<K,V> Map.Entryis a key/value mapping contained in aMap.NavigableMap<K,V> ASortedMapextended with navigation methods returning the closest matches for given search targets.NavigableSet<E> ASortedSetextended with navigation methods reporting closest matches for given search targets.Observer Observeris the interface to be implemented by objects that receive notification of updates on anObservableobject.Queue<E> A collection designed for holding elements prior to processing.RandomAccess RandomAccess is implemented byListimplementations that support fast (usually constant time) random access.Set<E> ASetis a data structure which does not allow duplicate elements.SortedMap<K,V> A map that has its keys ordered.SortedSet<E> SortedSet is a Set which iterates over its elements in a sorted order. -
Class Summary Class Description AbstractCollection<E> ClassAbstractCollectionis an abstract implementation of theCollectioninterface.AbstractList<E> AbstractListis an abstract implementation of theListinterface, optimized for a backing store which supports random access.AbstractMap<K,V> A base class forMapimplementations.AbstractMap.SimpleEntry<K,V> A key-value mapping with mutable values.AbstractMap.SimpleImmutableEntry<K,V> An immutable key-value mapping.AbstractQueue<E> This class provides skeletal implementations of someQueueoperations.AbstractSequentialList<E> AbstractSequentialList is an abstract implementation of the List interface.AbstractSet<E> An AbstractSet is an abstract implementation of the Set interface.ArrayDeque<E> Resizable-array implementation of theDequeinterface.ArrayList<E> ArrayList is an implementation ofList, backed by an array.Arrays Arrayscontains static methods which operate on arrays.BitSet TheBitSetclass implements a bit array.Calendar Calendaris an abstract base class for converting between aDateobject and a set of integer fields such asYEAR,MONTH,DAY,HOUR, and so on.Collections Collectionscontains static methods which operate onCollectionclasses.Currency A currency corresponding to an ISO 4217 currency code such as "EUR" or "USD".Date A specific moment in time, with millisecond precision.Dictionary<K,V> Note: Do not use this class since it is obsolete.EnumMap<K extends Enum<K>,V> AnMapspecialized for use withEnumtypes as keys.EnumSet<E extends Enum<E>> An EnumSet is a specialized Set to be used with enums as keys.EventListenerProxy This abstract class provides a simple wrapper for objects of typeEventListener.EventObject EventObjects represent events.FormattableFlags FormattableFlags are used as a parameter toFormattable.formatTo(Formatter, int, int, int)and change the output format inFormattables.Formatter Formats arguments according to a format string (likeprintfin C).GregorianCalendar GregorianCalendaris a concrete subclass ofCalendarand provides the standard calendar used by most of the world.HashMap<K,V> HashMap is an implementation ofMap.HashSet<E> HashSet is an implementation of a Set.Hashtable<K,V> Hashtable is a synchronized implementation ofMap.IdentityHashMap<K,V> IdentityHashMap is a variant on HashMap which tests equality by reference instead of equality by value.LinkedHashMap<K,V> LinkedHashMap is an implementation ofMapthat guarantees iteration order.LinkedHashSet<E> LinkedHashSet is a variant of HashSet.LinkedList<E> LinkedList is an implementation ofList, backed by a doubly-linked list.ListResourceBundle ListResourceBundleis the abstract superclass of classes which provide resources by implementing thegetContents()method to return the list of resources.Locale Localerepresents a language/country/variant combination.Objects Utility methods for objects.Observable Observable is used to notify a group of Observer objects when a change occurs.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.Properties APropertiesobject is aHashtablewhere the keys and values must beStrings.PropertyPermission Legacy security code; do not use.PropertyResourceBundle PropertyResourceBundleloads resources from anInputStream.Random This class provides methods that return pseudo-random values.ResourceBundle ResourceBundleis an abstract class which is the superclass of classes which provideLocale-specific resources.ResourceBundle.Control ResourceBundle.Control is a static utility class defines ResourceBundle load access methods, its default access order is as the same as before.Scanner A parser that parses a text string of primitive types and strings with the help of regular expressions.ServiceLoader<S> A service-provider loader.SimpleTimeZone SimpleTimeZoneis a concrete subclass ofTimeZonethat represents a time zone for use with a Gregorian calendar.Stack<E> Stackis a Last-In/First-Out(LIFO) data structure which represents a stack of objects.StringTokenizer Breaks a string into tokens; new code should probably useString.split(java.lang.String).Timer Timers schedule one-shot or recurringtasksfor execution.TimerTask TheTimerTaskclass represents a task to run at a specified time.TimeZone TimeZonerepresents a time zone, primarily used for configuring aCalendarorSimpleDateFormatinstance.TreeMap<K,V> A map whose entries are sorted by their keys.TreeSet<E> TreeSet is an implementation of SortedSet.UnsafeArrayList<T> An array-backed list that exposes its array.UUID UUID is an immutable representation of a 128-bit universally unique identifier (UUID).Vector<E> Vector is an implementation ofList, backed by an array and synchronized.WeakHashMap<K,V> WeakHashMap is an implementation of Map with keys which are WeakReferences. -
Enum Summary Enum Description Formatter.BigDecimalLayoutForm The enumeration giving the available styles for formatting very large decimal numbers. -
Exception Summary Exception Description ConcurrentModificationException AnConcurrentModificationExceptionis thrown when a Collection is modified and an existing iterator on the Collection is used to modify the Collection as well.DuplicateFormatFlagsException The unchecked exception will be thrown out if there are duplicate flags given out in the format specifier.EmptyStackException AnEmptyStackExceptionis thrown if the pop/peek method of a stack is executed on an empty stack.FormatFlagsConversionMismatchException AFormatFlagsConversionMismatchExceptionwill be thrown if a conversion and the flags are incompatible.FormatterClosedException AFormatterClosedExceptionwill be thrown if the formatter has been closed.IllegalFormatCodePointException AnIllegalFormatCodePointExceptionwill be thrown if an invalid Unicode code point (defined byCharacter.isValidCodePoint(int)) is passed as a parameter to a Formatter.IllegalFormatConversionException AnIllegalFormatConversionExceptionwill be thrown when the parameter is incompatible with the corresponding format specifier.IllegalFormatException AnIllegalFormatExceptionis thrown when a format string that contains either an illegal syntax or format specifier is transferred as a parameter.IllegalFormatFlagsException AnIllegalFormatFlagsExceptionwill be thrown if the combination of the format flags is illegal.IllegalFormatPrecisionException AnIllegalFormatPrecisionExceptionwill be thrown if the precision is a negative other than -1 or in other cases where precision is not supported.IllegalFormatWidthException AnIllegalFormatWidthExceptionwill be thrown if the width is a negative value other than -1 or in other cases where a width is not supported.InputMismatchException AnInputMismatchExceptionis thrown by a scanner to indicate that the next token does not match or is out of range for the type specified in the pattern.InvalidPropertiesFormatException AnInvalidPropertiesFormatExceptionis thrown if loading the XML document defining the properties does not follow thePropertiesspecification.MissingFormatArgumentException AMissingFormatArgumentExceptionwill be thrown if there is no corresponding argument with the specified conversion or an argument index that refers to a missing argument.MissingFormatWidthException AMissingFormatWidthExceptionwill be thrown if the format width is missing but is required.MissingResourceException AMissingResourceExceptionis thrown by ResourceBundle when a resource bundle cannot be found or a resource is missing from a resource bundle.NoSuchElementException Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.TooManyListenersException ATooManyListenersExceptionis thrown when an attempt is made to add more than one listener to an event source which only supports a single listener.UnknownFormatConversionException AnUnknownFormatConversionExceptionwill be thrown if the format conversion is unknown.UnknownFormatFlagsException AnUnknownFormatFlagsExceptionwill be thrown if there is an unknown flag. -
Error Summary Error Description ServiceConfigurationError Thrown when a service provider can't be loaded byServiceLoader.