public interface XReplacingBag<E> extends XGettingCollection<E>, XReplacingCollection<E>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
XReplacingBag.Factory<E> |
XGettingCollection.Creator<E>XIterable.Executor<E>Copyable.Static| Modifier and Type | Method and Description |
|---|---|
XReplacingBag<E> |
copy()
Creates a true copy of this collection which references the same elements as this collection does
at the time the method is called.
|
long |
replace(E element,
E replacement) |
long |
replace(Predicate<? super E> predicate,
E replacement) |
long |
replaceAll(XGettingCollection<? extends E> elements,
E replacement) |
boolean |
replaceOne(E element,
E replacement)
Replaces the first element that is equal to the given element
with the replacement and then returns true.
|
boolean |
replaceOne(Predicate<? super E> predicate,
E replacement) |
long |
substitute(Predicate<? super E> predicate,
Function<E,E> mapper) |
applies, contains, containsAll, containsId, containsSearched, copyTo, count, countBy, distinct, distinct, equality, equals, equals, equalsContent, except, filterTo, get, hashCode, hasVolatileElements, immure, intersect, intSize, iterator, join, max, min, nullContained, old, search, seek, size, toArray, toArray, union, viewnullAllowedforEach, spliteratorisFull, maximumCapacity, remainingCapacitysubstituteboolean replaceOne(E element, E replacement)
element - to replacereplacement - for the found elementtrue if element is found, false if notlong replaceAll(XGettingCollection<? extends E> elements, E replacement)
XReplacingBag<E> copy()
XGettingCollectioncopy in interface Copyablecopy in interface XGettingCollection<E>Copyright © 2022 MicroStream Software. All rights reserved.