interface RSetBase.Builder<T,Tp>
undocumented
Implemented by: OrderedSetBase.Builder<T,Tp>
, HashSet.Builder<T>
, SortedSet.Builder<T>
Type parameters
Name | Constraints | Default | Description |
---|---|---|---|
T | undocumented | ||
Tp | RSetBase.Types | RSetBase.Types | undocumented |
Properties
isEmpty
Returns true if there are no values in the builder.
isEmpty
size
Returns the amount of values in the builder.
size
Methods
add
Adds given value
to the builder.
add
value
to the builder.addAll
Adds the values in given values
StreamSource
to the builder.
addAll
values
StreamSource
to the builder.build
Returns an immutable instance containing the values in this builder.
build
forEach
Performs given function f
for each value of the builder.
forEach
f
for each value of the builder.has
Returns true if the given value
is present in the builder.
has
value
is present in the builder.remove
Remove the given value
from the builder.
remove
value
from the builder.removeAll
Removes the values in given values
StreamSource
from this builder.
removeAll
values
StreamSource
from this builder.