Package components.set
Class SetSecondary<T>
java.lang.Object
components.set.SetSecondary<T>
- Type Parameters:
T
- type ofSet
elements
Layered implementations of secondary methods for
Set
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds tothis
all elements ofs
that are not already inthis
, also removing just those elements froms
.final boolean
int
hashCode()
boolean
Reports whetherthis
is a subset ofs
.Removes fromthis
all elements ofs
that are also inthis
, leavings
unchanged, and returns the elements actually removed.toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface components.standard.Standard
clear, newInstance, transferFrom
-
Constructor Details
-
SetSecondary
public SetSecondary()
-
-
Method Details
-
equals
-
hashCode
-
toString
-
add
Description copied from interface:Set
Adds tothis
all elements ofs
that are not already inthis
, also removing just those elements froms
. -
remove
Description copied from interface:Set
Removes fromthis
all elements ofs
that are also inthis
, leavings
unchanged, and returns the elements actually removed. -
isSubset
Description copied from interface:Set
Reports whetherthis
is a subset ofs
.
-