public abstract class AbstractMemoryEfficientMutableList<T> extends AbstractMutableList<T> implements FixedSizeList<T>, RandomAccess
| Constructor and Description |
|---|
AbstractMemoryEfficientMutableList() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
T element) |
boolean |
add(T o) |
boolean |
addAll(Collection<? extends T> collection) |
boolean |
addAll(int index,
Collection<? extends T> collection) |
boolean |
addAllIterable(Iterable<? extends T> iterable) |
void |
clear() |
FixedSizeList<T> |
clone() |
ListIterator<T> |
listIterator() |
ListIterator<T> |
listIterator(int index) |
T |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> collection) |
boolean |
removeAllIterable(Iterable<?> iterable) |
void |
removeIf(Predicate<? super T> predicate)
Removes all elements in the collection that evaluate to true for the specified predicate.
|
<P> void |
removeIfWith(Predicate2<? super T,? super P> predicate,
P parameter)
Removes all elements in the collection that evaluate to true for the specified predicate2 and parameter.
|
boolean |
retainAll(Collection<?> collection) |
boolean |
retainAllIterable(Iterable<?> iterable) |
MutableList<T> |
subList(int fromIndex,
int toIndex) |
MutableList<T> |
withAll(Iterable<? extends T> elements)
This method allows mutable and fixed size collections the ability to add multiple elements to their existing
elements.
|
MutableList<T> |
without(T element)
This method allows mutable and fixed size collections the ability to remove elements from their existing elements.
|
MutableList<T> |
withoutAll(Iterable<? extends T> elements)
This method allows mutable and fixed size collections the ability to remove multiple elements from their existing
elements.
|
allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, asReversed, asSynchronized, asUnmodifiable, binarySearch, binarySearch, collect, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectIf, collectInt, collectLong, collectShort, collectWith, collectWith, contains, containsAll, count, countWith, detect, detectIfNone, detectWith, detectWithIfNone, distinct, dropWhile, equals, flatCollect, flatCollect, forEach, forEach, forEachWith, forEachWithIndex, forEachWithIndex, getFirst, getLast, groupBy, groupByEach, groupByUniqueKey, hashCode, indexOf, injectInto, injectInto, injectInto, injectInto, injectIntoWith, iterator, lastIndexOf, max, max, maxBy, min, min, minBy, newEmpty, noneSatisfy, noneSatisfyWith, partition, partitionWhile, partitionWith, reject, reject, rejectWith, rejectWith, reverseForEach, reverseThis, select, select, selectAndRejectWith, selectInstancesOf, selectWith, selectWith, sortThis, sortThis, sortThisBy, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, takeWhile, toImmutable, toList, toReversed, toSet, toSortedList, toSortedList, toStack, with, zip, zipWithIndexaggregateBy, aggregateInPlaceBy, chunkappendString, appendString, asLazy, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAllArguments, containsAllIterable, groupBy, groupByEach, injectInto, isEmpty, makeString, makeString, makeString, notEmpty, toArray, toArray, toBag, toMap, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, toString, zip, zipWithIndexasSynchronized, asUnmodifiable, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, distinct, dropWhile, flatCollect, groupBy, groupByEach, newEmpty, partition, partitionWhile, partitionWith, reject, rejectWith, reverseThis, select, selectInstancesOf, selectWith, sortThis, sortThis, sortThisBy, takeWhile, toImmutable, toReversed, with, zip, zipWithIndexcontains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, replaceAll, set, size, sort, spliterator, toArray, toArrayasReversed, binarySearch, binarySearch, equals, forEach, forEachWithIndex, get, getFirst, getLast, hashCode, lastIndexOf, toStackindexOf, reverseForEachallSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, count, countWith, detect, detectIfNone, detectWith, detectWithIfNone, flatCollect, groupBy, groupByEach, injectInto, injectInto, injectInto, injectInto, injectInto, isEmpty, makeString, makeString, makeString, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, notEmpty, reject, rejectWith, select, selectWith, size, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toList, toMap, toSet, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, toString, zip, zipWithIndexforEach, forEachWith, forEachWithIndexwithaggregateBy, aggregateInPlaceBy, groupByUniqueKey, injectIntoWith, selectAndRejectWithparallelStream, removeIf, streampublic FixedSizeList<T> clone()
clone in interface MutableList<T>clone in class AbstractMutableList<T>public boolean add(T o)
add in interface FixedSizeCollection<T>add in interface Collection<T>add in interface List<T>add in class AbstractMutableCollection<T>public boolean addAll(Collection<? extends T> collection)
addAll in interface FixedSizeCollection<T>addAll in interface Collection<T>addAll in interface List<T>addAll in class AbstractMutableCollection<T>public boolean addAll(int index,
Collection<? extends T> collection)
public boolean addAllIterable(Iterable<? extends T> iterable)
addAllIterable in interface FixedSizeCollection<T>addAllIterable in interface MutableCollection<T>addAllIterable in class AbstractMutableCollection<T>Collection.addAll(Collection)public boolean remove(Object o)
remove in interface FixedSizeCollection<T>remove in interface Collection<T>remove in interface List<T>remove in class AbstractMutableCollection<T>public boolean removeAll(Collection<?> collection)
removeAll in interface FixedSizeCollection<T>removeAll in interface Collection<T>removeAll in interface List<T>removeAll in class AbstractMutableList<T>public boolean removeAllIterable(Iterable<?> iterable)
removeAllIterable in interface FixedSizeCollection<T>removeAllIterable in interface MutableCollection<T>removeAllIterable in class AbstractMutableCollection<T>Collection.removeAll(Collection)public void removeIf(Predicate<? super T> predicate)
MutableCollectione.g. return lastNames.removeIf(Predicates.isNull());
removeIf in interface FixedSizeCollection<T>removeIf in interface MutableCollection<T>removeIf in class AbstractMutableList<T>public <P> void removeIfWith(Predicate2<? super T,? super P> predicate, P parameter)
MutableCollectione.g. return lastNames.removeIfWith(PredicatesLite.isNull(), null);
removeIfWith in interface FixedSizeCollection<T>removeIfWith in interface MutableCollection<T>removeIfWith in class AbstractMutableList<T>public boolean retainAll(Collection<?> collection)
retainAll in interface FixedSizeCollection<T>retainAll in interface Collection<T>retainAll in interface List<T>retainAll in class AbstractMutableList<T>public boolean retainAllIterable(Iterable<?> iterable)
retainAllIterable in interface FixedSizeCollection<T>retainAllIterable in interface MutableCollection<T>retainAllIterable in class AbstractMutableCollection<T>Collection.retainAll(Collection)public void clear()
clear in interface FixedSizeCollection<T>clear in interface Collection<T>clear in interface List<T>public MutableList<T> subList(int fromIndex, int toIndex)
subList in interface MutableList<T>subList in interface List<T>subList in class AbstractMutableList<T>public MutableList<T> without(T element)
MutableCollectionMutableCollectionIn the case oflist; list = list.without("1"); list = list.without("2"); return list;
FixedSizeCollection a new instance of MutableCollection will be returned by without, and
any variables that previously referenced the original collection will need to be redirected to reference the
new instance. For other MutableCollection types you will replace the reference to collection with the same
collection, since the instance will return "this" after calling remove on itself.without in interface FixedSizeCollection<T>without in interface MutableCollection<T>without in interface MutableList<T>without in class AbstractMutableList<T>Collection.remove(Object)public MutableList<T> withAll(Iterable<? extends T> elements)
MutableCollectionMutableCollectionIn the case oflist; list = list.withAll(FastList.newListWith("1", "2")); return list;
FixedSizeCollection a new instance of MutableCollection will be returned by withAll, and
any variables that previously referenced the original collection will need to be redirected to reference the
new instance. For other MutableCollection types you will replace the reference to collection with the same
collection, since the instance will return "this" after calling addAll on itself.withAll in interface FixedSizeCollection<T>withAll in interface MutableCollection<T>withAll in interface MutableList<T>withAll in class AbstractMutableList<T>Collection.addAll(Collection)public MutableList<T> withoutAll(Iterable<? extends T> elements)
MutableCollectionMutableCollectionIn the case oflist; list = list.withoutAll(FastList.newListWith("1", "2")); return list;
FixedSizeCollection a new instance of MutableCollection will be returned by withoutAll,
and any variables that previously referenced the original collection will need to be redirected to reference the
new instance. For other MutableCollection types you will replace the reference to collection with the same
collection, since the instance will return "this" after calling removeAll on itself.withoutAll in interface FixedSizeCollection<T>withoutAll in interface MutableCollection<T>withoutAll in interface MutableList<T>withoutAll in class AbstractMutableList<T>Collection.removeAll(Collection)public ListIterator<T> listIterator(int index)
listIterator in interface ListIterable<T>listIterator in interface List<T>listIterator in class AbstractMutableList<T>List.listIterator(int)public ListIterator<T> listIterator()
listIterator in interface ListIterable<T>listIterator in interface List<T>listIterator in class AbstractMutableList<T>List.listIterator()Copyright © 2004–2017. All rights reserved.