public interface UnmodifiableEconomicSet<E> extends Iterable<E>
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(E element)
Returns
true if this set contains a mapping for the element. |
boolean |
isEmpty()
Returns
true if this set contains no elements. |
int |
size()
Returns the number of elements in this set.
|
default E[] |
toArray(E[] target)
Stores all of the elements in this set into
target. |
forEach, iterator, spliteratorboolean contains(E element)
true if this set contains a mapping for the element.int size()
boolean isEmpty()
true if this set contains no elements.default E[] toArray(E[] target)
target. An
UnsupportedOperationException will be thrown if the length of target does not
match the size of this set.UnsupportedOperationException - if the length of target does not equal the size
of this set.