Export (0) Print
Expand All

java.util

Visual Studio 2005

Contains the classes and interfaces used to handle collections such as hash tables, linked lists, stacks, and dictionaries. This package also provides classes to handle time zones and globalization, in addition to other utility classes such as a random-number generator and a string tokenizer.

Classes

Class Description

ArrayList

Represents a dynamically sized, index-based collection of objects.

Arrays

A class that contains several methods for sorting, searching, filling and comparing arrays.

Calendar

Contains methods and members to perform basic operations involving days, weeks, months, and years.

ConcurrentModificationException

The exception that is thrown when two threads attempt to modify a collection concurrently.

Date

Contains methods to perform basic operations on dates and times.

Dictionary

An abstract class that contains a map of elements associated with keys. Both elements and keys are non-null objects.

EmptyStackException

The exception that is thrown when attempting to pop an element off of an empty stack.

GregorianCalendar

Extends the abstract class Calendar and provides the common standard calendar.

HashMap

Represents a unique collection of key-value pairs. The elements are sorted according to the hash value of the key, and each key can exist only once in the collection.

HashSet

Represents a unique collection of elements that are sorted according to their hash value, and can each exist only once in the collection.

Hashtable

Provides an object for key entries mapped to their corresponding values. Both keys and values must be non-null objects.

LinkedList

A class that represents a dynamic collection of elements. Each element consists of a data field and a link field. The link field points to the data field of the next element.

MissingResourceException

An exception thrown to indicate that a resource is missing.

NoSuchElementException

The exception that is thrown when attempting to access an element in a collection that does not exist. This exception is frequently thrown when attempting to perform an operation on an empty collection or when attempting to access past the end of the collection.

Observable

Represents the observable object, which usually contains data. It can have one or more observers. An Observer object is an instance of a class that implements the Observer interface. When the data on the observable object changes, the observers can be notified through the update method, which passes the necessary information to the notifyObservers method.

Random

Contains methods to obtain various sorts of random data, such as integers, floats, and other primitives.

SimpleTimeZone

Represents a specialization of the TimeZone class containing methods useful for calculations involving time zones, such as offsets from UTC and determining whether daylight savings time is in effect.

Stack

Represents a collection of objects that are accessed in a last-in, first out fashion. Elements are pushed onto the top of the stack, and the last element pushed on is the first element to be popped off.

StringTokenizer

Provides methods to parse a string and split it into tokens based on a delimiter.

TimeZone

Represents an abstract class containing methods useful for calculations involving time zones, such as offsets from UTC and determining whether daylight savings time is in effect.

TreeMap

Provides a sorted map object that implements the SortedMap interface.

TreeSet

A class that represents a sorted set of elements. The elements are sorted using the comparator provided through constructor or using the Comparable interface methods implemented by the elements.

Vector

Represents a dynamic array of elements. Unlike a static array, a vector will grow in size once it has reached capacity.

Interfaces

Interface Description

Collection

An interface that represents a group of objects or elements. It is implemented by many collection classes such as LinkedList, ArrayList, HashSet and TreeSet.

Comparator

Contains methods to compare objects. It is implemented by the abstract class Collator.

Enumeration

Provides an efficient mechanism to traverse the elements of various collections.

Iterator

Provides an efficient mechanism to traverse the elements of various collections.

List

An interface that represents an ordered collection of elements.

ListIterator

An interface that implements the Iterator interface. It allows traversing the list and modifying it during iteration. It also obtains the current position of the iterator's cursor. The cursor position is between the elements of a collection.

Map

An interface that provides a Map object for key entries and their corresponding values.

Observer

An interface that enables the implementing class to be notified of any changes in the observable objects.

Set

Provides a set of objects that implements the Collection interface.

SortedMap

Represents a specialization of a Map object containing elements sorted by their key.

SortedSet

Represents a specialization of a Set object containing sorted elements.

Community Additions

ADD
Show:
© 2014 Microsoft