Interface SetKernel<T>
- Type Parameters:
T- type ofSetKernelelements
- All Known Subinterfaces:
Set<T>
- All Known Implementing Classes:
Set1L, Set2, Set3, Set4, SetSecondary
Set kernel component with primary methods. (Note: by package-wide convention,
all references are non-null.)
- Mathematical Model (abstract value and abstract invariant of this):
type SetKernel is modeled by finite set of T- Constructor(s) (initial abstract value(s) of this):
(): ensures this = {}- Iterator String (abstract value of ~this):
entries(~this.seen * ~this.unseen) = this and |~this.seen * ~this.unseen| = |this|
-
Method Summary
Methods inherited from interface Iterable
forEach, iterator, spliteratorMethods inherited from interface Standard
clear, newInstance, transferFrom
-
Method Details
-
add
-
remove
-
removeAny
-
contains
-
size
int size()Reports size (cardinality) ofthis.- Returns:
- the number of elements in
this - Ensures:
size = |this|
-