| Modifier and Type | Class and Description |
|---|---|
| protected abstract class |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| AbstractMemoryEfficientMutableSet | back to summary |
|---|---|
| pack-priv AbstractMemoryEfficientMutableSet() | |
| addAll | back to summary |
|---|---|
| public boolean addAll(Collection<? extends T> collection) Overrides org. Implements java. Doc from java. Adds all of the elements in the specified collection to this set if
they're not already present (optional operation). If the specified
collection is also a set, the
| |
| addAllIterable | back to summary |
|---|---|
| public boolean addAllIterable(Iterable<? extends T> iterable) Overrides org. Implements org.
| |
| asParallel | back to summary |
|---|---|
| public ParallelUnsortedSetIterable Implements org. Doc from org. Returns a parallel iterable of this SetIterable.
| |
| clear | back to summary |
|---|---|
| public void clear() Implements java. Doc from java. Removes all of the elements from this set (optional operation). The set will be empty after this call returns.
| |
| nullSafeHashCode | back to summary |
|---|---|
| protected int nullSafeHashCode(Object element) | |
| remove | back to summary |
|---|---|
| public boolean remove(Object o) Overrides org. Implements java. Doc from java. Removes the specified element from this set if it is present
(optional operation). More formally, removes an element
| |
| removeAll | back to summary |
|---|---|
| public boolean removeAll(Collection<?> collection) Overrides org. Implements java. Doc from java. Removes from this set all of its elements that are contained in the specified collection (optional operation). If the specified collection is also a set, this operation effectively modifies this set so that its value is the asymmetric set difference of the two sets.
| |
| removeAllIterable | back to summary |
|---|---|
| public boolean removeAllIterable(Iterable<?> iterable) Overrides org. Implements org.
| |
| removeIf | back to summary |
|---|---|
| public boolean removeIf(Predicate<? super T> predicate) Overrides org. Implements org. Doc from org. Removes all elements in the collection that evaluate to true for the specified predicate. e.g. return lastNames.removeIf(Predicates.isNull());
| |
| removeIfWith | back to summary |
|---|---|
| public <P> boolean removeIfWith(Predicate2<? super T, ? super P> predicate, P parameter) Overrides org. Implements org. Doc from org. Removes all elements in the collection that evaluate to true for the specified predicate2 and parameter. return lastNames.removeIfWith(Predicates2.isNull(), null);
| |
| retainAll | back to summary |
|---|---|
| public boolean retainAll(Collection<?> collection) Overrides org. Implements java. Doc from java. Retains only the elements in this set that are contained in the specified collection (optional operation). In other words, removes from this set all of its elements that are not contained in the specified collection. If the specified collection is also a set, this operation effectively modifies this set so that its value is the intersection of the two sets.
| |
| retainAllIterable | back to summary |
|---|---|
| public boolean retainAllIterable(Iterable<?> iterable) Overrides org. Implements org.
| |
| tap | back to summary |
|---|---|
| public FixedSizeSet Overrides org. Implements org. Doc from org. Executes the Procedure for each element in the iterable and returns Example using a Java 8 lambda expression:
RichIterable<Person> tapped =
people.tap(person -> LOGGER.info(person.getName()));
| |
| withAll | back to summary |
|---|---|
| public MutableSet Overrides default org. Implements org. Doc from org. This method allows fixed size collections the ability to add multiple elements to their existing elements. A new
instance of
MutableCollection<String> list;
list = list.withAll(FastList.newListWith("1", "2"));
return list;
| |
| withoutAll | back to summary |
|---|---|
| public MutableSet Overrides default org. Implements org. Doc from org. This method allows fixed size collections the ability to remove multiple elements from their existing elements.
A new instance of
MutableCollection<String> list;
list = list.withoutAll(FastList.newListWith("1", "2"));
return list;
| |
| Modifier and Type | Field and Description |
|---|---|
| private int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract T | |
| public boolean | |
| public T | |
| public void | remove()
Overrides default java. Removes from the underlying collection the last element returned by this iterator (optional operation). |
| next | back to summary |
|---|---|
| private int next | |
| MemoryEfficientSetIterator | back to summary |
|---|---|
| protected MemoryEfficientSetIterator() | |
| getElement | back to summary |
|---|---|
| protected abstract T getElement(int i) | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public T next() Implements java. Doc from java. Returns the next element in the iteration.
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |