Interface Set<T>
- Type Parameters:
T- type ofSetentries
- All Known Implementing Classes:
Set1L, Set2, Set3, Set4, SetSecondary
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds tothisall elements ofsthat are not already inthis, also removing just those elements froms.booleanReports whetherthisis a subset ofs.Removes fromthisall elements ofsthat are also inthis, leavingsunchanged, and returns the elements actually removed.Methods inherited from interface Iterable
forEach, iterator, spliteratorMethods inherited from interface Standard
clear, newInstance, transferFrom
-
Method Details
-
add
-
remove
Removes fromthisall elements ofsthat are also inthis, leavingsunchanged, and returns the elements actually removed.- Parameters:
s- theSetwhose elements are to be removed fromthis- Returns:
- the
Setwhose elements actually were removed fromthis - Updates:
this- Ensures:
this = #this \ s and remove = #this intersection s
-
isSubset
-