public final class CompositeFastList<E> extends AbstractMutableList<E> implements BatchIterable<E>, java.io.Serializable
Note: mutation operations (e.g. add and remove, sorting) will change the underlying lists - so be sure to only use a composite list where it will be the only reference to the sublists (for example, a composite list which contains multiple query results is OK as long as it is the only thing that references the lists)
AbstractMutableList.SubList<T>| Constructor and Description |
|---|
CompositeFastList() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E object) |
void |
add(int index,
E element) |
boolean |
addAll(java.util.Collection<? extends E> collection) |
boolean |
addAll(int index,
java.util.Collection<? extends E> collection) |
void |
addComposited(java.util.Collection<? extends E> collection) |
boolean |
allSatisfy(com.gs.collections.api.block.predicate.Predicate<? super E> predicate)
Returns true if the predicate evaluates to true for every element of the iterable or if the iterable is empty.
|
<P> boolean |
allSatisfyWith(com.gs.collections.api.block.predicate.Predicate2<? super E,? super P> predicate,
P parameter)
Returns true if the predicate evaluates to true for every element of the collection, or returns false.
|
boolean |
anySatisfy(com.gs.collections.api.block.predicate.Predicate<? super E> predicate)
Returns true if the predicate evaluates to true for any element of the iterable.
|
<P> boolean |
anySatisfyWith(com.gs.collections.api.block.predicate.Predicate2<? super E,? super P> predicate,
P parameter)
Returns true if the predicate evaluates to true for any element of the collection, or return false.
|
com.gs.collections.api.list.ParallelListIterable<E> |
asParallel(java.util.concurrent.ExecutorService executorService,
int batchSize)
Returns a parallel iterable of this ListIterable.
|
void |
batchForEach(com.gs.collections.api.block.procedure.Procedure<? super E> procedure,
int sectionIndex,
int sectionCount) |
void |
clear() |
com.gs.collections.api.list.MutableList<E> |
clone() |
<V,R extends java.util.Collection<V>> |
collect(com.gs.collections.api.block.function.Function<? super E,? extends V> function,
R target)
Same as
RichIterable.collect(Function), except that the results are gathered into the specified target
collection. |
<P,A,R extends java.util.Collection<A>> |
collectWith(com.gs.collections.api.block.function.Function2<? super E,? super P,? extends A> function,
P parameter,
R target)
Same as collectWith but with a targetCollection parameter to gather the results.
|
boolean |
contains(java.lang.Object object)
Returns true if the iterable has an element which responds true to element.equals(object).
|
boolean |
containsAll(java.util.Collection<?> collection)
Returns true if all elements in source are contained in this collection.
|
int |
count(com.gs.collections.api.block.predicate.Predicate<? super E> predicate)
Return the total number of elements that answer true to the specified predicate.
|
<P> int |
countWith(com.gs.collections.api.block.predicate.Predicate2<? super E,? super P> predicate,
P parameter)
Returns the total number of elements that evaluate to true for the specified predicate.
|
protected void |
defaultSort(java.util.Comparator<? super E> comparator)
Override in subclasses where it can be optimized.
|
void |
each(com.gs.collections.api.block.procedure.Procedure<? super E> procedure)
The procedure is executed for each element in the iterable.
|
<P> void |
forEachWith(com.gs.collections.api.block.procedure.Procedure2<? super E,? super P> procedure2,
P parameter)
The procedure2 is evaluated for each element in the iterable with the specified parameter provided
as the second argument.
|
void |
forEachWithIndex(com.gs.collections.api.block.procedure.primitive.ObjectIntProcedure<? super E> objectIntProcedure)
Iterates over the iterable passing each element and the current relative int index to the specified instance of
ObjectIntProcedure.
|
E |
get(int index)
Returns the item at the specified position in this list iterable.
|
int |
getBatchCount(int batchSize) |
int |
indexOf(java.lang.Object o)
Returns the index of the first occurrence of the specified item
in this iterable, or -1 if this iterable does not contain the item.
|
double |
injectInto(double injectedValue,
com.gs.collections.api.block.function.primitive.DoubleObjectToDoubleFunction<? super E> function)
Returns the final double result of evaluating function using each element of the iterable and the previous evaluation
result as the parameters.
|
float |
injectInto(float injectedValue,
com.gs.collections.api.block.function.primitive.FloatObjectToFloatFunction<? super E> function)
Returns the final float result of evaluating function using each element of the iterable and the previous evaluation
result as the parameters.
|
int |
injectInto(int injectedValue,
com.gs.collections.api.block.function.primitive.IntObjectToIntFunction<? super E> function)
Returns the final int result of evaluating function using each element of the iterable and the previous evaluation
result as the parameters.
|
<IV> IV |
injectInto(IV injectedValue,
com.gs.collections.api.block.function.Function2<? super IV,? super E,? extends IV> function)
Returns the final result of evaluating function using each element of the iterable and the previous evaluation
result as the parameters.
|
long |
injectInto(long injectedValue,
com.gs.collections.api.block.function.primitive.LongObjectToLongFunction<? super E> function)
Returns the final long result of evaluating function using each element of the iterable and the previous evaluation
result as the parameters.
|
boolean |
isEmpty()
Returns true if this iterable has zero items.
|
java.util.Iterator<E> |
iterator() |
int |
lastIndexOf(java.lang.Object o)
Returns the index of the last occurrence of the specified item
in this list, or -1 if this list does not contain the item.
|
java.util.ListIterator<E> |
listIterator()
a list iterator is a problem for a composite list as going back in the order of the list is an issue,
as are the other methods like set() and add() (and especially, remove).
|
java.util.ListIterator<E> |
listIterator(int index)
a list iterator is a problem for a composite list as going back in the order of the list is an issue,
as are the other methods like set() and add() (and especially, remove).
|
boolean |
noneSatisfy(com.gs.collections.api.block.predicate.Predicate<? super E> predicate)
Returns true if the predicate evaluates to false for every element of the iterable or if the iterable is empty.
|
<P> boolean |
noneSatisfyWith(com.gs.collections.api.block.predicate.Predicate2<? super E,? super P> predicate,
P parameter)
Returns true if the predicate evaluates to false for every element of the collection, or return false.
|
<R extends java.util.Collection<E>> |
reject(com.gs.collections.api.block.predicate.Predicate<? super E> predicate,
R target)
Same as the reject method with one parameter but uses the specified target collection for the results.
|
<P,R extends java.util.Collection<E>> |
rejectWith(com.gs.collections.api.block.predicate.Predicate2<? super E,? super P> predicate,
P parameter,
R target)
Similar to
RichIterable.reject(Predicate, Collection), except with an evaluation parameter for the second generic argument in Predicate2. |
E |
remove(int index) |
boolean |
remove(java.lang.Object object) |
boolean |
removeAll(java.util.Collection<?> collection) |
void |
resetSize() |
boolean |
retainAll(java.util.Collection<?> collection) |
void |
reverseForEach(com.gs.collections.api.block.procedure.Procedure<? super E> procedure)
Evaluates the procedure for each element of the list iterating in reverse order.
|
CompositeFastList<E> |
reverseThis()
Mutates the current list by reversing its order and returns the current list as a result
|
<R extends java.util.Collection<E>> |
select(com.gs.collections.api.block.predicate.Predicate<? super E> predicate,
R target)
Same as the select method with one parameter but uses the specified target collection for the results.
|
<P,R extends java.util.Collection<E>> |
selectWith(com.gs.collections.api.block.predicate.Predicate2<? super E,? super P> predicate,
P parameter,
R target)
Similar to
RichIterable.select(Predicate, Collection), except with an evaluation parameter for the second generic argument in Predicate2. |
E |
set(int index,
E element) |
int |
size()
Returns the number of items in this iterable.
|
java.lang.Object[] |
toArray()
Converts this iterable to an array.
|
java.lang.Object[] |
toArray(java.lang.Object[] array)
Converts this iterable to an array using the specified target array, assuming the target array is as long
or longer than the iterable.
|
appendString, appendString, asReversed, asSynchronized, asUnmodifiable, binarySearch, binarySearch, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectIf, collectInt, collectLong, collectShort, collectWith, corresponds, detect, detectIfNone, detectIndex, detectLastIndex, detectWith, detectWithIfNone, distinct, distinct, drop, dropWhile, equals, flatCollect, flatCollect, forEach, forEachWithIndex, getFirst, getLast, groupBy, groupByEach, groupByUniqueKey, hashCode, injectIntoWith, max, max, maxBy, min, min, minBy, newEmpty, partition, partitionWhile, partitionWith, reject, rejectWith, removeIf, removeIfWith, select, selectAndRejectWith, selectInstancesOf, selectWith, shuffleThis, shuffleThis, sortThis, sortThis, sortThisBy, sortThisByBoolean, sortThisByByte, sortThisByChar, sortThisByDouble, sortThisByFloat, sortThisByInt, sortThisByLong, sortThisByShort, subList, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, take, takeWhile, tap, toImmutable, toList, toReversed, toSet, toSortedList, toSortedList, toStack, with, withAll, without, withoutAll, zip, zip, zipWithIndex, zipWithIndexaddAllIterable, aggregateBy, aggregateInPlaceBy, chunk, removeAllIterable, retainAllIterableappendString, asLazy, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAllArguments, containsAllIterable, forEach, groupBy, groupByEach, groupByUniqueKey, makeString, makeString, makeString, notEmpty, sumByDouble, sumByFloat, sumByInt, sumByLong, toBag, toMap, toSortedBag, toSortedBag, toSortedBagBy, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitforEachaddAllIterable, aggregateBy, aggregateInPlaceBy, removeAllIterable, retainAllIterableappendString, asLazy, chunk, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAllArguments, containsAllIterable, groupBy, groupByEach, groupByUniqueKey, makeString, makeString, makeString, notEmpty, sumByDouble, sumByFloat, sumByInt, sumByLong, toBag, toMap, toSortedBag, toSortedBag, toSortedBagBy, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, toStringpublic com.gs.collections.api.list.MutableList<E> clone()
clone in interface com.gs.collections.api.list.MutableList<E>clone in class AbstractMutableList<E>public int size()
com.gs.collections.api.RichIterablepublic void resetSize()
public void batchForEach(com.gs.collections.api.block.procedure.Procedure<? super E> procedure, int sectionIndex, int sectionCount)
batchForEach in interface BatchIterable<E>public int getBatchCount(int batchSize)
getBatchCount in interface BatchIterable<E>public CompositeFastList<E> reverseThis()
com.gs.collections.api.list.MutableListreverseThis in interface com.gs.collections.api.list.MutableList<E>reverseThis in class AbstractMutableList<E>public void each(com.gs.collections.api.block.procedure.Procedure<? super E> procedure)
com.gs.collections.api.RichIterableExample using a Java 8 lambda expression:
people.each(person -> LOGGER.info(person.getName()));
Example using an anonymous inner class:
people.each(new ProcedureThis method is a variant of() { public void value(Person person) { LOGGER.info(person.getName()); } });
InternalIterable.forEach(Procedure)
that has a signature conflict with Iterable#forEach(java.util.function.Consumer).each in interface com.gs.collections.api.RichIterable<E>each in class AbstractMutableList<E>InternalIterable.forEach(Procedure),
Iterable#forEach(java.util.function.Consumer)public <IV> IV injectInto(IV injectedValue,
com.gs.collections.api.block.function.Function2<? super IV,? super E,? extends IV> function)
com.gs.collections.api.RichIterableinjectInto in interface com.gs.collections.api.RichIterable<E>injectInto in class AbstractMutableList<E>public int injectInto(int injectedValue,
com.gs.collections.api.block.function.primitive.IntObjectToIntFunction<? super E> function)
com.gs.collections.api.RichIterableinjectInto in interface com.gs.collections.api.RichIterable<E>injectInto in class AbstractMutableList<E>public float injectInto(float injectedValue,
com.gs.collections.api.block.function.primitive.FloatObjectToFloatFunction<? super E> function)
com.gs.collections.api.RichIterableinjectInto in interface com.gs.collections.api.RichIterable<E>injectInto in class AbstractMutableList<E>public long injectInto(long injectedValue,
com.gs.collections.api.block.function.primitive.LongObjectToLongFunction<? super E> function)
com.gs.collections.api.RichIterableinjectInto in interface com.gs.collections.api.RichIterable<E>injectInto in class AbstractMutableList<E>public double injectInto(double injectedValue,
com.gs.collections.api.block.function.primitive.DoubleObjectToDoubleFunction<? super E> function)
com.gs.collections.api.RichIterableinjectInto in interface com.gs.collections.api.RichIterable<E>injectInto in class AbstractRichIterable<E>public void forEachWithIndex(com.gs.collections.api.block.procedure.primitive.ObjectIntProcedure<? super E> objectIntProcedure)
com.gs.collections.api.InternalIterableExample using a Java 8 lambda:
people.forEachWithIndex((Person person, int index) -> LOGGER.info("Index: " + index + " person: " + person.getName()));
Example using an anonymous inner class:
people.forEachWithIndex(new ObjectIntProcedure() { public void value(Person person, int index) { LOGGER.info("Index: " + index + " person: " + person.getName()); } });
forEachWithIndex in interface com.gs.collections.api.InternalIterable<E>forEachWithIndex in interface com.gs.collections.api.ordered.OrderedIterable<E>forEachWithIndex in class AbstractMutableList<E>public void reverseForEach(com.gs.collections.api.block.procedure.Procedure<? super E> procedure)
com.gs.collections.api.ordered.ReversibleIterable
e.g. people.reverseForEach(new Procedure() { public void value(Person person) { LOGGER.info(person.getName()); } });
reverseForEach in interface com.gs.collections.api.ordered.ReversibleIterable<E>reverseForEach in class AbstractMutableList<E>public <P> void forEachWith(com.gs.collections.api.block.procedure.Procedure2<? super E,? super P> procedure2, P parameter)
com.gs.collections.api.InternalIterableExample using a Java 8 lambda:
people.forEachWith((Person person, Person other) ->
{
if (person.isRelatedTo(other))
{
LOGGER.info(person.getName());
}
}, fred);
Example using an anonymous inner class:
people.forEachWith(new Procedure2() { public void value(Person person, Person other) { if (person.isRelatedTo(other)) { LOGGER.info(person.getName()); } } }, fred);
forEachWith in interface com.gs.collections.api.InternalIterable<E>forEachWith in class AbstractMutableList<E>public boolean isEmpty()
com.gs.collections.api.RichIterablepublic boolean contains(java.lang.Object object)
com.gs.collections.api.RichIterablepublic java.util.Iterator<E> iterator()
public java.lang.Object[] toArray()
com.gs.collections.api.RichIterablepublic boolean add(E object)
add in interface java.util.Collection<E>add in interface java.util.List<E>add in class AbstractMutableCollection<E>public boolean remove(java.lang.Object object)
remove in interface java.util.Collection<E>remove in interface java.util.List<E>remove in class AbstractMutableCollection<E>public boolean addAll(java.util.Collection<? extends E> collection)
addAll in interface java.util.Collection<E>addAll in interface java.util.List<E>addAll in class AbstractMutableCollection<E>public boolean containsAll(java.util.Collection<?> collection)
com.gs.collections.api.RichIterablecontainsAll in interface com.gs.collections.api.RichIterable<E>containsAll in interface java.util.Collection<E>containsAll in interface java.util.List<E>containsAll in class AbstractMutableList<E>Collection.containsAll(Collection)public java.lang.Object[] toArray(java.lang.Object[] array)
com.gs.collections.api.RichIterablepublic void addComposited(java.util.Collection<? extends E> collection)
public boolean addAll(int index,
java.util.Collection<? extends E> collection)
addAll in interface java.util.List<E>public void clear()
public boolean retainAll(java.util.Collection<?> collection)
retainAll in interface java.util.Collection<E>retainAll in interface java.util.List<E>retainAll in class AbstractMutableList<E>public boolean removeAll(java.util.Collection<?> collection)
removeAll in interface java.util.Collection<E>removeAll in interface java.util.List<E>removeAll in class AbstractMutableList<E>public E get(int index)
com.gs.collections.api.list.ListIterablepublic int indexOf(java.lang.Object o)
com.gs.collections.api.ordered.OrderedIterableindexOf in interface com.gs.collections.api.ordered.OrderedIterable<E>indexOf in interface java.util.List<E>indexOf in class AbstractMutableList<E>List.indexOf(Object)public int lastIndexOf(java.lang.Object o)
com.gs.collections.api.list.ListIterablelastIndexOf in interface com.gs.collections.api.list.ListIterable<E>lastIndexOf in interface java.util.List<E>lastIndexOf in class AbstractMutableList<E>public java.util.ListIterator<E> listIterator()
AFAIK list iterator is only commonly used in sorting.
listIterator in interface com.gs.collections.api.list.ListIterable<E>listIterator in interface java.util.List<E>listIterator in class AbstractMutableList<E>List.listIterator()public java.util.ListIterator<E> listIterator(int index)
AFAIK list iterator is only commonly used in sorting.
listIterator in interface com.gs.collections.api.list.ListIterable<E>listIterator in interface java.util.List<E>listIterator in class AbstractMutableList<E>List.listIterator(int)public int count(com.gs.collections.api.block.predicate.Predicate<? super E> predicate)
com.gs.collections.api.RichIterableExample using a Java 8 lambda expression:
int count =
people.count(person -> person.getAddress().getState().getName().equals("New York"));
Example using an anonymous inner class:
int count =
people.count(new Predicate<Person>()
{
public boolean accept(Person person)
{
return person.getAddress().getState().getName().equals("New York");
}
});
count in interface com.gs.collections.api.RichIterable<E>count in class AbstractMutableList<E>public <P> int countWith(com.gs.collections.api.block.predicate.Predicate2<? super E,? super P> predicate, P parameter)
com.gs.collections.api.RichIterable
e.g. return lastNames.countWith(PredicatesLite.equal(), "Smith");
countWith in interface com.gs.collections.api.RichIterable<E>countWith in class AbstractMutableList<E>public boolean anySatisfy(com.gs.collections.api.block.predicate.Predicate<? super E> predicate)
com.gs.collections.api.RichIterableanySatisfy in interface com.gs.collections.api.RichIterable<E>anySatisfy in class AbstractMutableList<E>public <R extends java.util.Collection<E>> R select(com.gs.collections.api.block.predicate.Predicate<? super E> predicate, R target)
com.gs.collections.api.RichIterableExample using a Java 8 lambda expression:
MutableList<Person> selected =
people.select(person -> person.person.getLastName().equals("Smith"), Lists.mutable.empty());
Example using an anonymous inner class:
MutableList<Person> selected =
people.select(new Predicate<Person>()
{
public boolean accept(Person person)
{
return person.person.getLastName().equals("Smith");
}
}, Lists.mutable.empty());
select in interface com.gs.collections.api.RichIterable<E>select in class AbstractMutableList<E>predicate - a Predicate to use as the select criteriatarget - the Collection to append to for all elements in this RichIterable that meet select criteria predicatetarget, which contains appended elements as a result of the select criteriaRichIterable.select(Predicate)public <P,R extends java.util.Collection<E>> R selectWith(com.gs.collections.api.block.predicate.Predicate2<? super E,? super P> predicate, P parameter, R target)
com.gs.collections.api.RichIterableRichIterable.select(Predicate, Collection), except with an evaluation parameter for the second generic argument in Predicate2.
E.g. return a Collection of Person elements where the person has an age greater than or equal to 18 years
Example using a Java 8 lambda expression:
MutableList<Person> selected =
people.selectWith((Person person, Integer age) -> person.getAge() >= age, Integer.valueOf(18), Lists.mutable.empty());
Example using an anonymous inner class:
MutableList<Person> selected =
people.selectWith(new Predicate2<Person, Integer>()
{
public boolean accept(Person person, Integer age)
{
return person.getAge() >= age;
}
}, Integer.valueOf(18), Lists.mutable.empty());
selectWith in interface com.gs.collections.api.RichIterable<E>selectWith in class AbstractMutableList<E>predicate - a Predicate2 to use as the select criteriaparameter - a parameter to pass in for evaluation of the second argument P in predicatetarget - the Collection to append to for all elements in this RichIterable that meet select criteria predicatetargetCollection, which contains appended elements as a result of the select criteriaRichIterable.select(Predicate),
RichIterable.select(Predicate, Collection)public <R extends java.util.Collection<E>> R reject(com.gs.collections.api.block.predicate.Predicate<? super E> predicate, R target)
com.gs.collections.api.RichIterableExample using a Java 8 lambda expression:
MutableList<Person> rejected =
people.reject(person -> person.person.getLastName().equals("Smith"), Lists.mutable.empty());
Example using an anonymous inner class:
MutableList<Person> rejected =
people.reject(new Predicate<Person>()
{
public boolean accept(Person person)
{
return person.person.getLastName().equals("Smith");
}
}, Lists.mutable.empty());
reject in interface com.gs.collections.api.RichIterable<E>reject in class AbstractMutableList<E>predicate - a Predicate to use as the reject criteriatarget - the Collection to append to for all elements in this RichIterable that cause Predicate#accept(Object) method to evaluate to falsetarget, which contains appended elements as a result of the reject criteriapublic <P,R extends java.util.Collection<E>> R rejectWith(com.gs.collections.api.block.predicate.Predicate2<? super E,? super P> predicate, P parameter, R target)
com.gs.collections.api.RichIterableRichIterable.reject(Predicate, Collection), except with an evaluation parameter for the second generic argument in Predicate2.
E.g. return a Collection of Person elements where the person has an age greater than or equal to 18 years
Example using a Java 8 lambda expression:
MutableList<Person> rejected =
people.rejectWith((Person person, Integer age) -> person.getAge() < age, Integer.valueOf(18), Lists.mutable.empty());
Example using an anonymous inner class:
MutableList<Person> rejected =
people.rejectWith(new Predicate2<Person, Integer>()
{
public boolean accept(Person person, Integer age)
{
return person.getAge() < age;
}
}, Integer.valueOf(18), Lists.mutable.empty());
rejectWith in interface com.gs.collections.api.RichIterable<E>rejectWith in class AbstractMutableList<E>predicate - a Predicate2 to use as the reject criteriaparameter - a parameter to pass in for evaluation of the second argument P in predicatetarget - the Collection to append to for all elements in this RichIterable that cause Predicate#accept(Object) method to evaluate to falsetargetCollection, which contains appended elements as a result of the reject criteriaRichIterable.reject(Predicate),
RichIterable.reject(Predicate, Collection)public <V,R extends java.util.Collection<V>> R collect(com.gs.collections.api.block.function.Function<? super E,? extends V> function, R target)
com.gs.collections.api.RichIterableRichIterable.collect(Function), except that the results are gathered into the specified target
collection.
Example using a Java 8 lambda expression:
MutableList<String> names =
people.collect(person -> person.getFirstName() + " " + person.getLastName(), Lists.mutable.empty());
Example using an anonymous inner class:
MutableList<String> names =
people.collect(new Function<Person, String>()
{
public String valueOf(Person person)
{
return person.getFirstName() + " " + person.getLastName();
}
}, Lists.mutable.empty());
collect in interface com.gs.collections.api.RichIterable<E>collect in class AbstractMutableList<E>function - a Function to use as the collect transformation functiontarget - the Collection to append to for all elements in this RichIterable that meet select criteria functiontarget, which contains appended elements as a result of the collect transformationRichIterable.collect(Function)public <P,A,R extends java.util.Collection<A>> R collectWith(com.gs.collections.api.block.function.Function2<? super E,? super P,? extends A> function, P parameter, R target)
com.gs.collections.api.RichIterableExample using a Java 8 lambda expression:
MutableSet<Integer> integers =
Lists.mutable.with(1, 2, 3).collectWith((each, parameter) -> each + parameter, Integer.valueOf(1), Sets.mutable.empty());
Example using an anonymous inner class:
Function2addParameterFunction = new Function2 () { public Integer value(final Integer each, final Integer parameter) { return each + parameter; } }; MutableSet<Integer> integers = Lists.mutable.with(1, 2, 3).collectWith(addParameterFunction, Integer.valueOf(1), Sets.mutable.empty());
collectWith in interface com.gs.collections.api.RichIterable<E>collectWith in class AbstractMutableList<E>function - a Function2 to use as the collect transformation functionparameter - a parameter to pass in for evaluation of the second argument P in functiontarget - the Collection to append to for all elements in this RichIterable that meet select criteria functiontargetCollection, which contains appended elements as a result of the collect transformationpublic <P> boolean anySatisfyWith(com.gs.collections.api.block.predicate.Predicate2<? super E,? super P> predicate, P parameter)
com.gs.collections.api.RichIterableanySatisfyWith in interface com.gs.collections.api.RichIterable<E>anySatisfyWith in class AbstractMutableList<E>public boolean allSatisfy(com.gs.collections.api.block.predicate.Predicate<? super E> predicate)
com.gs.collections.api.RichIterableallSatisfy in interface com.gs.collections.api.RichIterable<E>allSatisfy in class AbstractMutableList<E>public <P> boolean allSatisfyWith(com.gs.collections.api.block.predicate.Predicate2<? super E,? super P> predicate, P parameter)
com.gs.collections.api.RichIterableallSatisfyWith in interface com.gs.collections.api.RichIterable<E>allSatisfyWith in class AbstractMutableList<E>public boolean noneSatisfy(com.gs.collections.api.block.predicate.Predicate<? super E> predicate)
com.gs.collections.api.RichIterablenoneSatisfy in interface com.gs.collections.api.RichIterable<E>noneSatisfy in class AbstractMutableList<E>public <P> boolean noneSatisfyWith(com.gs.collections.api.block.predicate.Predicate2<? super E,? super P> predicate, P parameter)
com.gs.collections.api.RichIterablenoneSatisfyWith in interface com.gs.collections.api.RichIterable<E>noneSatisfyWith in class AbstractMutableList<E>protected void defaultSort(java.util.Comparator<? super E> comparator)
defaultSort in class AbstractMutableList<E>public com.gs.collections.api.list.ParallelListIterable<E> asParallel(java.util.concurrent.ExecutorService executorService, int batchSize)
com.gs.collections.api.list.ListIterableasParallel in interface com.gs.collections.api.list.ListIterable<E>asParallel in class AbstractMutableList<E>