VCollections – Release 1
Interface org.violetlib.collections.SetBuilder
Deprecated: ShowHide
-
-
|
Modifier and Type |
Method and Description |
 |
add   |
abstract void add(V e)
Add an element to be included in the collection.
-
Description copied from interface: Builder
Add an element to be included in the collection.
The order in which elements are added may determine the order of elements in an ordered collection.
- Parameters:
e - The element to be added.
|
 |
addAll   |
void addAll(Iterable<? extends V> it)
A convenience method to add the elements obtained from the supplied iterable collection.
void addAll(Iterable<? extends V> it)
throws IllegalArgumentException
-
Description copied from interface: Builder
A convenience method to add the elements obtained from the supplied iterable collection.
- Parameters:
it - The iterable collection that provides the elements.
- Throws:
IllegalArgumentException - if the sequence contains a null element.
|
 |
addOptional   |
|
 |
isEmpty   |
abstract boolean isEmpty()
Indicate whether the collection created in the current state would be empty.
boolean isEmpty()
-
Description copied from interface: Builder
Indicate whether the collection created in the current state would be empty.
- Returns:
- true if and only if the collection would be empty.
|
 |
reset   |
abstract void reset()
Remove all previously supplied elements.
void reset()
-
Description copied from interface: Builder
Remove all previously supplied elements.
|
 |
size   |
abstract int size()
Return the number of elements that would be contained in the collection created in the current state.
int size()
-
Description copied from interface: Builder
Return the number of elements that would be contained in the collection created in the current state.
- Returns:
- the number of elements.
|
 |
values   |
abstract ISet<V> values()
Return a set containing the previously supplied (and not removed) elements.
-
Return a set containing the previously supplied (and not removed) elements.
- Specified by:
values in interface Builder<V>
- Returns:
- the set.
|