Provides the Set
family interfaces and implementing classes.
-
class
Set
represented as a
java.util.Set
with
implementations of primary methods.
class
Set
represented as a
Queue
of elements with implementations
of primary methods.
class
Set
represented as a
BinaryTree
(maintained as a binary
search tree) of elements with implementations of primary methods.
class
Set
represented as a hash table using
Set
s for the buckets,
with implementations of primary methods.
class
Layered implementations of secondary methods for Set
.
Removes from this
all elements of s
that are also in
this
, leaving s
unchanged, and returns the elements
actually removed.
void
Adds to this
all elements of s
that are not already in
this
, also removing just those elements from s
.
void
boolean
Reports whether this
is a subset of s
.
boolean
Removes from this
all elements of s
that are also in
this
, leaving s
unchanged, and returns the elements
actually removed.
final void
final void
final void
final void