public abstract class AbstractMemoryEfficientMutableList<T> extends AbstractMutableList<T> implements com.gs.collections.api.list.FixedSizeList<T>, java.util.RandomAccess
| Constructor and Description |
|---|
AbstractMemoryEfficientMutableList() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
T element) |
boolean |
add(T o) |
boolean |
addAll(java.util.Collection<? extends T> collection) |
boolean |
addAll(int index,
java.util.Collection<? extends T> collection) |
boolean |
addAllIterable(java.lang.Iterable<? extends T> iterable) |
void |
clear() |
com.gs.collections.api.list.FixedSizeList<T> |
clone() |
java.util.ListIterator<T> |
listIterator() |
java.util.ListIterator<T> |
listIterator(int index) |
T |
remove(int index) |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> collection) |
boolean |
removeAllIterable(java.lang.Iterable<?> iterable) |
void |
removeIf(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
Removes all elements in the collection that evaluate to true for the specified predicate.
|
<P> void |
removeIfWith(com.gs.collections.api.block.predicate.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(java.util.Collection<?> collection) |
boolean |
retainAllIterable(java.lang.Iterable<?> iterable) |
com.gs.collections.api.list.MutableList<T> |
subList(int fromIndex,
int toIndex) |
com.gs.collections.api.list.MutableList<T> |
withAll(java.lang.Iterable<? extends T> elements)
This method allows mutable and fixed size collections the ability to add multiple elements to their existing
elements.
|
com.gs.collections.api.list.MutableList<T> |
without(T element)
This method allows mutable and fixed size collections the ability to remove elements from their existing elements.
|
com.gs.collections.api.list.MutableList<T> |
withoutAll(java.lang.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, defaultSort, 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, zipWithIndexfinalize, getClass, notify, notifyAll, wait, wait, waitasSynchronized, 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, set, size, 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, zipWithIndexpublic com.gs.collections.api.list.FixedSizeList<T> clone()
clone in interface com.gs.collections.api.list.MutableList<T>clone in class AbstractMutableList<T>public boolean add(T o)
public boolean addAll(java.util.Collection<? extends T> collection)
public boolean addAll(int index,
java.util.Collection<? extends T> collection)
addAll in interface java.util.List<T>public boolean addAllIterable(java.lang.Iterable<? extends T> iterable)
addAllIterable in interface com.gs.collections.api.collection.FixedSizeCollection<T>addAllIterable in interface com.gs.collections.api.collection.MutableCollection<T>addAllIterable in class AbstractMutableCollection<T>Collection.addAll(Collection)public boolean remove(java.lang.Object o)
public boolean removeAll(java.util.Collection<?> collection)
public boolean removeAllIterable(java.lang.Iterable<?> iterable)
removeAllIterable in interface com.gs.collections.api.collection.FixedSizeCollection<T>removeAllIterable in interface com.gs.collections.api.collection.MutableCollection<T>removeAllIterable in class AbstractMutableCollection<T>Collection.removeAll(Collection)public void removeIf(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
com.gs.collections.api.collection.MutableCollectione.g. return lastNames.removeIf(Predicates.isNull());
removeIf in interface com.gs.collections.api.collection.FixedSizeCollection<T>removeIf in interface com.gs.collections.api.collection.MutableCollection<T>removeIf in class AbstractMutableList<T>public <P> void removeIfWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
com.gs.collections.api.collection.MutableCollectione.g. return lastNames.removeIfWith(PredicatesLite.isNull(), null);
removeIfWith in interface com.gs.collections.api.collection.FixedSizeCollection<T>removeIfWith in interface com.gs.collections.api.collection.MutableCollection<T>removeIfWith in class AbstractMutableList<T>public boolean retainAll(java.util.Collection<?> collection)
public boolean retainAllIterable(java.lang.Iterable<?> iterable)
retainAllIterable in interface com.gs.collections.api.collection.FixedSizeCollection<T>retainAllIterable in interface com.gs.collections.api.collection.MutableCollection<T>retainAllIterable in class AbstractMutableCollection<T>Collection.retainAll(Collection)public void clear()
public com.gs.collections.api.list.MutableList<T> subList(int fromIndex, int toIndex)
subList in interface com.gs.collections.api.list.MutableList<T>subList in interface java.util.List<T>subList in class AbstractMutableList<T>public com.gs.collections.api.list.MutableList<T> without(T element)
com.gs.collections.api.collection.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 com.gs.collections.api.collection.FixedSizeCollection<T>without in interface com.gs.collections.api.collection.MutableCollection<T>without in interface com.gs.collections.api.list.MutableList<T>without in class AbstractMutableList<T>Collection.remove(Object)public com.gs.collections.api.list.MutableList<T> withAll(java.lang.Iterable<? extends T> elements)
com.gs.collections.api.collection.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 com.gs.collections.api.collection.FixedSizeCollection<T>withAll in interface com.gs.collections.api.collection.MutableCollection<T>withAll in interface com.gs.collections.api.list.MutableList<T>withAll in class AbstractMutableList<T>Collection.addAll(Collection)public com.gs.collections.api.list.MutableList<T> withoutAll(java.lang.Iterable<? extends T> elements)
com.gs.collections.api.collection.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 com.gs.collections.api.collection.FixedSizeCollection<T>withoutAll in interface com.gs.collections.api.collection.MutableCollection<T>withoutAll in interface com.gs.collections.api.list.MutableList<T>withoutAll in class AbstractMutableList<T>Collection.removeAll(Collection)public java.util.ListIterator<T> listIterator(int index)
listIterator in interface com.gs.collections.api.list.ListIterable<T>listIterator in interface java.util.List<T>listIterator in class AbstractMutableList<T>List.listIterator(int)public java.util.ListIterator<T> listIterator()
listIterator in interface com.gs.collections.api.list.ListIterable<T>listIterator in interface java.util.List<T>listIterator in class AbstractMutableList<T>List.listIterator()