Package java.util

Interface Set

implements Collection

A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1 and e2 such that e1.equals(e2), and at most one null element. As implied by its name, this interface models the mathematical set abstraction.

The Set interface places additional stipulations, beyond those inherited from the Collection interface, on the contracts of all constructors and on the contracts of the add, equals and hashCode methods. Declarations for other inherited methods are also included here for convenience. The specifications accompanying these declarations have been tailored to the Set interface, but they do not contain any additional stipulations.

The additional stipulation on constructors is, that all constructors must create a set that contains no duplicate elements as defined above.

Use the concrete implementations HashSet and TreeSet (they differ only in performance).

_INSERT_CONSTRUCTOR_ENTRY_HERE_

Public Methods

_INSERT_INHERITED_METHOD_ENTRY_HERE_

_INSERT_FIELDS_ENTRY_HERE_