Wednesday, 13 March 2013

Exploring java.util


Exploring java.util

Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array).


Interface Summary

Collection<E>: The root interface in the collection hierarchy.
Comparator<T>: A comparison function, which imposes a total ordering on some collection of objects.
Enumeration<E>: An object that implements the Enumeration interface generates a series of elements, one at a time.
EventListener: A tagging interface that all event listener interfaces must extend.
Iterator<E>: An iterator over a collection
List<E>An ordered collection (also known as a sequence).
ListIterator<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.
Map<K,V>: An object that maps keys to values.
Observer: A class can implement the Observer interface when it wants to be informed of changes in observable objects.
Queue<E>: A collection designed for holding elements prior to processing.
Set<E>: A collection that contains no duplicate elements.
SortedMap<K,V>: A Map that further provides a total ordering on its keys.
SortedSet<E>: A Set that further provides a total ordering on its elements.

Class Summary

AbstractCollection<E>: This class provides a skeletal implementation of the Collection interface, to minimize the effort required to implement this interface.
AbstractList<E>: 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).
AbstractMap<K,V>: This class provides a skeletal implementation of the Map interface, to minimize the effort required to implement this interface.
AbstractQueue<E>: This class provides skeletal implementations of some Queue operations.
AbstractSequentialList<E>: 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).
AbstractSet<E>: This class provides a skeletal implementation of the Set interface to minimize the effort required to implement this interface.
ArrayList<E>: Resizable-array implementation   of the List interface
Arrays: This class contains various methods for manipulating arrays (such as sorting and searching).
BitSet: This class implements a vector of bits that grows as needed
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
Collections: This class consists exclusively of static methods that operate on or return collections
Currency: Represents a currency.
Date: The class Date represents a specific instant in time, with millisecond precision.
Dictionary<K,V>: The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to values.
EventObject: The root class from which all event state objects shall be derived.

GregorianCalendar: GregorianCalendar is a concrete subclass of Calendar and provides the standard calendar system used by most of the world.
HashMap<K,V>: Hash table based implementation of the Map interface.
HashSet<E>: This class implements the Set interface, backed by a hash table (actually a HashMap instance)
.Hashtable<K,V>: This class implements a hashtable, which maps keys to values.
LinkedList<E>: Linked list implementation of the List interface
Locale: A Locale object represents a specific geographical, political, or cultural region.
Observable: This class represents an observable object, or "data" in the model-view paradigm
Properties: The Properties class represents a persistent set of properties.
Random: An instance of this class is used to generate a stream of pseudorandom numbers.
ResourceBundle: Resource bundles contain locale-specific objects.
SimpleTimeZone: SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for use with a Gregorian calendar.
Stack<E>: The Stack class represents a last-in-first-out (LIFO) stack of objects.
StringTokenizer: The string tokenizer class allows an application to break a string into tokens.
TimeZone: TimeZone represents a time zone offset, and also figures out daylight savings.
TreeMap<K,V>: A Red-Black tree based NavigableMap implementation.
TreeSet<E>: A NavigableSet implementation based on a TreeMap.UUIDA class that represents an immutable universally unique identifier (UUID).
Vector<E>: The Vector class implements a growable array of objects

Exception Summary

EmptyStackException: Thrown by methods in the Stack       class to indicate that the stack is empty.
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.
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.
NoSuchElementException: Thrown by the nextElement method of an Enumeration to indicate that there are no more elements in the enumeration.
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.
UnknownFormatConversionException: Unchecked exception thrown when an unknown conversion is given.

No comments:

Post a Comment