Class AbstractMutableList<T>
- java.lang.Object
-
- org.eclipse.collections.impl.AbstractRichIterable<T>
-
- org.eclipse.collections.impl.collection.mutable.AbstractMutableCollection<T>
-
- org.eclipse.collections.impl.list.mutable.AbstractMutableList<T>
-
- All Implemented Interfaces:
Cloneable
,Iterable<T>
,Collection<T>
,List<T>
,MutableCollection<T>
,InternalIterable<T>
,ListIterable<T>
,MutableList<T>
,OrderedIterable<T>
,ReversibleIterable<T>
,RichIterable<T>
- Direct Known Subclasses:
AbstractArrayAdapter
,AbstractMemoryEfficientMutableList
,BoxedMutableBooleanList
,BoxedMutableByteList
,BoxedMutableCharList
,BoxedMutableDoubleList
,BoxedMutableFloatList
,BoxedMutableIntList
,BoxedMutableLongList
,BoxedMutableShortList
,CompositeFastList
,FastList
public abstract class AbstractMutableList<T> extends AbstractMutableCollection<T> implements MutableList<T>
-
-
Constructor Summary
Constructors Constructor Description AbstractMutableList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allSatisfy(Predicate<? super T> predicate)
<P> boolean
allSatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)
boolean
anySatisfy(Predicate<? super T> predicate)
<P> boolean
anySatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)
void
appendString(Appendable appendable, String separator)
void
appendString(Appendable appendable, String start, String separator, String end)
ParallelListIterable<T>
asParallel(ExecutorService executorService, int batchSize)
ReverseIterable<T>
asReversed()
MutableList<T>
asSynchronized()
MutableList<T>
asUnmodifiable()
int
binarySearch(T key, Comparator<? super T> comparator)
RichIterable<RichIterable<T>>
chunk(int size)
MutableList<T>
clone()
<V,R extends Collection<V>>
Rcollect(Function<? super T,? extends V> function, R target)
<V,R extends Collection<V>>
RcollectIf(Predicate<? super T> predicate, Function<? super T,? extends V> function, R target)
<P,A,R extends Collection<A>>
RcollectWith(Function2<? super T,? super P,? extends A> function, P parameter, R target)
boolean
contains(Object object)
boolean
containsAll(Collection<?> source)
<S> boolean
corresponds(OrderedIterable<S> other, Predicate2<? super T,? super S> predicate)
int
count(Predicate<? super T> predicate)
<P> int
countWith(Predicate2<? super T,? super P> predicate, P parameter)
T
detect(Predicate<? super T> predicate)
int
detectIndex(Predicate<? super T> predicate)
int
detectLastIndex(Predicate<? super T> predicate)
Optional<T>
detectOptional(Predicate<? super T> predicate)
<P> T
detectWith(Predicate2<? super T,? super P> predicate, P parameter)
<P> Optional<T>
detectWithOptional(Predicate2<? super T,? super P> predicate, P parameter)
MutableList<T>
distinct()
MutableList<T>
distinct(HashingStrategy<? super T> hashingStrategy)
<V> MutableList<T>
distinctBy(Function<? super T,? extends V> function)
MutableList<T>
drop(int count)
MutableList<T>
dropWhile(Predicate<? super T> predicate)
void
each(Procedure<? super T> procedure)
boolean
equals(Object that)
<V,R extends Collection<V>>
RflatCollect(Function<? super T,? extends Iterable<V>> function, R target)
void
forEach(int from, int to, Procedure<? super T> procedure)
<P> void
forEachWith(Procedure2<? super T,? super P> procedure, P parameter)
void
forEachWithIndex(int fromIndex, int toIndex, ObjectIntProcedure<? super T> objectIntProcedure)
void
forEachWithIndex(ObjectIntProcedure<? super T> objectIntProcedure)
T
getFirst()
T
getLast()
<V> FastListMultimap<V,T>
groupBy(Function<? super T,? extends V> function)
<V> FastListMultimap<V,T>
groupByEach(Function<? super T,? extends Iterable<V>> function)
<K> MutableMap<K,T>
groupByUniqueKey(Function<? super T,? extends K> function)
int
hashCode()
int
indexOf(Object object)
float
injectInto(float injectedValue, FloatObjectToFloatFunction<? super T> function)
int
injectInto(int injectedValue, IntObjectToIntFunction<? super T> function)
long
injectInto(long injectedValue, LongObjectToLongFunction<? super T> function)
<IV> IV
injectInto(IV injectedValue, Function2<? super IV,? super T,? extends IV> function)
<IV,P>
IVinjectIntoWith(IV injectValue, Function3<? super IV,? super T,? super P,? extends IV> function, P parameter)
Iterator<T>
iterator()
int
lastIndexOf(Object object)
ListIterator<T>
listIterator()
ListIterator<T>
listIterator(int index)
T
max()
T
max(Comparator<? super T> comparator)
<V extends Comparable<? super V>>
TmaxBy(Function<? super T,? extends V> function)
T
min()
T
min(Comparator<? super T> comparator)
<V extends Comparable<? super V>>
TminBy(Function<? super T,? extends V> function)
MutableList<T>
newEmpty()
boolean
noneSatisfy(Predicate<? super T> predicate)
<P> boolean
noneSatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)
PartitionMutableList<T>
partition(Predicate<? super T> predicate)
PartitionMutableList<T>
partitionWhile(Predicate<? super T> predicate)
<P> PartitionMutableList<T>
partitionWith(Predicate2<? super T,? super P> predicate, P parameter)
<R extends Collection<T>>
Rreject(Predicate<? super T> predicate, R target)
<P,R extends Collection<T>>
RrejectWith(Predicate2<? super T,? super P> predicate, P parameter, R target)
boolean
removeAll(Collection<?> collection)
boolean
removeIf(Predicate<? super T> predicate)
<P> boolean
removeIfWith(Predicate2<? super T,? super P> predicate, P parameter)
boolean
retainAll(Collection<?> collection)
<R extends Collection<T>>
Rselect(Predicate<? super T> predicate, R target)
<P> Twin<MutableList<T>>
selectAndRejectWith(Predicate2<? super T,? super P> predicate, P parameter)
<S> MutableList<S>
selectInstancesOf(Class<S> clazz)
<P,R extends Collection<T>>
RselectWith(Predicate2<? super T,? super P> predicate, P parameter, R target)
MutableList<T>
sortThisByBoolean(BooleanFunction<? super T> function)
MutableList<T>
sortThisByByte(ByteFunction<? super T> function)
MutableList<T>
sortThisByChar(CharFunction<? super T> function)
MutableList<T>
sortThisByDouble(DoubleFunction<? super T> function)
MutableList<T>
sortThisByFloat(FloatFunction<? super T> function)
MutableList<T>
sortThisByInt(IntFunction<? super T> function)
MutableList<T>
sortThisByLong(LongFunction<? super T> function)
MutableList<T>
sortThisByShort(ShortFunction<? super T> function)
MutableList<T>
subList(int fromIndex, int toIndex)
double
sumOfDouble(DoubleFunction<? super T> function)
double
sumOfFloat(FloatFunction<? super T> function)
long
sumOfInt(IntFunction<? super T> function)
long
sumOfLong(LongFunction<? super T> function)
MutableList<T>
take(int count)
MutableList<T>
takeWhile(Predicate<? super T> predicate)
MutableList<T>
tap(Procedure<? super T> procedure)
MutableSet<T>
toSet()
MutableList<T>
toSortedList()
<S> MutableList<Pair<T,S>>
zip(Iterable<S> that)
<S,R extends Collection<Pair<T,S>>>
Rzip(Iterable<S> that, R target)
MutableList<Pair<T,Integer>>
zipWithIndex()
<R extends Collection<Pair<T,Integer>>>
RzipWithIndex(R target)
-
Methods inherited from class org.eclipse.collections.impl.collection.mutable.AbstractMutableCollection
add, addAll, addAllIterable, countBy, countByEach, countByWith, reduce, remove, removeAllIterable, retainAllIterable, sumByDouble, sumByFloat, sumByInt, sumByLong
-
Methods inherited from class org.eclipse.collections.impl.AbstractRichIterable
asLazy, containsAllArguments, containsAllIterable, detectWithIfNone, forEach, groupBy, groupByEach, groupByUniqueKey, injectInto, into, isEmpty, toArray, toArray, toBag, toBiMap, toList, toMap, toSortedBag, toSortedBag, toSortedBagBy, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, toString
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface org.eclipse.collections.api.InternalIterable
forEach
-
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, get, isEmpty, remove, remove, replaceAll, set, size, sort, spliterator, toArray, toArray
-
Methods inherited from interface org.eclipse.collections.api.list.ListIterable
binarySearch, forEachInBoth, get
-
Methods inherited from interface org.eclipse.collections.api.collection.MutableCollection
addAllIterable, aggregateBy, aggregateInPlaceBy, countBy, countByEach, countByWith, removeAllIterable, retainAllIterable, sumByDouble, sumByFloat, sumByInt, sumByLong
-
Methods inherited from interface org.eclipse.collections.api.list.MutableList
collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, collectWithIndex, flatCollect, flatCollectWith, reject, rejectWith, rejectWithIndex, reverseThis, select, selectWith, selectWithIndex, shuffleThis, shuffleThis, sortThis, sortThis, sortThisBy, toImmutable, toImmutableList, toReversed, with, withAll, without, withoutAll
-
Methods inherited from interface org.eclipse.collections.api.ordered.OrderedIterable
collectWithIndex, getFirstOptional, getLastOptional, rejectWithIndex, selectWithIndex, toStack
-
Methods inherited from interface org.eclipse.collections.api.ordered.ReversibleIterable
reverseForEach, reverseForEachWithIndex
-
Methods inherited from interface org.eclipse.collections.api.RichIterable
aggregateBy, appendString, asLazy, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAllArguments, containsAllIterable, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, countBy, countByEach, countByWith, detectIfNone, detectWithIfNone, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, flatCollectWith, forEach, getAny, getOnly, groupBy, groupByAndCollect, groupByEach, groupByUniqueKey, injectInto, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, into, isEmpty, makeString, makeString, makeString, makeString, maxByOptional, maxOptional, maxOptional, minByOptional, minOptional, minOptional, notEmpty, reduce, reduceInPlace, reduceInPlace, size, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, toArray, toArray, toBag, toBiMap, toImmutableBag, toImmutableBiMap, toImmutableMap, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedListBy, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toList, toMap, toMap, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, toString
-
-
-
-
Method Detail
-
clone
public MutableList<T> clone()
- Specified by:
clone
in interfaceMutableList<T>
-
equals
public boolean equals(Object that)
-
hashCode
public int hashCode()
-
each
public void each(Procedure<? super T> procedure)
- Specified by:
each
in interfaceRichIterable<T>
-
forEachWithIndex
public void forEachWithIndex(ObjectIntProcedure<? super T> objectIntProcedure)
- Specified by:
forEachWithIndex
in interfaceInternalIterable<T>
- Specified by:
forEachWithIndex
in interfaceOrderedIterable<T>
- Overrides:
forEachWithIndex
in classAbstractRichIterable<T>
-
forEachWith
public <P> void forEachWith(Procedure2<? super T,? super P> procedure, P parameter)
- Specified by:
forEachWith
in interfaceInternalIterable<T>
- Overrides:
forEachWith
in classAbstractRichIterable<T>
-
zip
public <S,R extends Collection<Pair<T,S>>> R zip(Iterable<S> that, R target)
- Specified by:
zip
in interfaceOrderedIterable<T>
- Specified by:
zip
in interfaceRichIterable<T>
- Overrides:
zip
in classAbstractRichIterable<T>
-
zipWithIndex
public <R extends Collection<Pair<T,Integer>>> R zipWithIndex(R target)
- Specified by:
zipWithIndex
in interfaceOrderedIterable<T>
- Specified by:
zipWithIndex
in interfaceRichIterable<T>
- Overrides:
zipWithIndex
in classAbstractRichIterable<T>
-
forEachWithIndex
public void forEachWithIndex(int fromIndex, int toIndex, ObjectIntProcedure<? super T> objectIntProcedure)
- Specified by:
forEachWithIndex
in interfaceOrderedIterable<T>
-
select
public <R extends Collection<T>> R select(Predicate<? super T> predicate, R target)
- Specified by:
select
in interfaceRichIterable<T>
- Overrides:
select
in classAbstractRichIterable<T>
-
selectWith
public <P,R extends Collection<T>> R selectWith(Predicate2<? super T,? super P> predicate, P parameter, R target)
- Specified by:
selectWith
in interfaceRichIterable<T>
- Overrides:
selectWith
in classAbstractRichIterable<T>
-
reject
public <R extends Collection<T>> R reject(Predicate<? super T> predicate, R target)
- Specified by:
reject
in interfaceRichIterable<T>
- Overrides:
reject
in classAbstractRichIterable<T>
-
rejectWith
public <P,R extends Collection<T>> R rejectWith(Predicate2<? super T,? super P> predicate, P parameter, R target)
- Specified by:
rejectWith
in interfaceRichIterable<T>
- Overrides:
rejectWith
in classAbstractRichIterable<T>
-
selectAndRejectWith
public <P> Twin<MutableList<T>> selectAndRejectWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
selectAndRejectWith
in interfaceMutableCollection<T>
- Overrides:
selectAndRejectWith
in classAbstractMutableCollection<T>
-
partition
public PartitionMutableList<T> partition(Predicate<? super T> predicate)
- Specified by:
partition
in interfaceListIterable<T>
- Specified by:
partition
in interfaceMutableCollection<T>
- Specified by:
partition
in interfaceMutableList<T>
- Specified by:
partition
in interfaceOrderedIterable<T>
- Specified by:
partition
in interfaceReversibleIterable<T>
- Specified by:
partition
in interfaceRichIterable<T>
-
partitionWith
public <P> PartitionMutableList<T> partitionWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
partitionWith
in interfaceListIterable<T>
- Specified by:
partitionWith
in interfaceMutableCollection<T>
- Specified by:
partitionWith
in interfaceMutableList<T>
- Specified by:
partitionWith
in interfaceOrderedIterable<T>
- Specified by:
partitionWith
in interfaceReversibleIterable<T>
- Specified by:
partitionWith
in interfaceRichIterable<T>
-
selectInstancesOf
public <S> MutableList<S> selectInstancesOf(Class<S> clazz)
- Specified by:
selectInstancesOf
in interfaceListIterable<T>
- Specified by:
selectInstancesOf
in interfaceMutableCollection<T>
- Specified by:
selectInstancesOf
in interfaceMutableList<T>
- Specified by:
selectInstancesOf
in interfaceOrderedIterable<T>
- Specified by:
selectInstancesOf
in interfaceReversibleIterable<T>
- Specified by:
selectInstancesOf
in interfaceRichIterable<T>
-
removeIf
public boolean removeIf(Predicate<? super T> predicate)
- Specified by:
removeIf
in interfaceMutableCollection<T>
- Overrides:
removeIf
in classAbstractMutableCollection<T>
-
removeIfWith
public <P> boolean removeIfWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
removeIfWith
in interfaceMutableCollection<T>
- Overrides:
removeIfWith
in classAbstractMutableCollection<T>
-
collect
public <V,R extends Collection<V>> R collect(Function<? super T,? extends V> function, R target)
- Specified by:
collect
in interfaceRichIterable<T>
- Overrides:
collect
in classAbstractRichIterable<T>
-
flatCollect
public <V,R extends Collection<V>> R flatCollect(Function<? super T,? extends Iterable<V>> function, R target)
- Specified by:
flatCollect
in interfaceRichIterable<T>
- Overrides:
flatCollect
in classAbstractRichIterable<T>
-
collectWith
public <P,A,R extends Collection<A>> R collectWith(Function2<? super T,? super P,? extends A> function, P parameter, R target)
- Specified by:
collectWith
in interfaceRichIterable<T>
- Overrides:
collectWith
in classAbstractRichIterable<T>
-
collectIf
public <V,R extends Collection<V>> R collectIf(Predicate<? super T> predicate, Function<? super T,? extends V> function, R target)
- Specified by:
collectIf
in interfaceRichIterable<T>
- Overrides:
collectIf
in classAbstractRichIterable<T>
-
detect
public T detect(Predicate<? super T> predicate)
- Specified by:
detect
in interfaceRichIterable<T>
- Overrides:
detect
in classAbstractRichIterable<T>
-
detectWith
public <P> T detectWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
detectWith
in interfaceRichIterable<T>
- Overrides:
detectWith
in classAbstractRichIterable<T>
-
detectOptional
public Optional<T> detectOptional(Predicate<? super T> predicate)
- Specified by:
detectOptional
in interfaceRichIterable<T>
- Overrides:
detectOptional
in classAbstractRichIterable<T>
-
detectWithOptional
public <P> Optional<T> detectWithOptional(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
detectWithOptional
in interfaceRichIterable<T>
- Overrides:
detectWithOptional
in classAbstractRichIterable<T>
-
detectIndex
public int detectIndex(Predicate<? super T> predicate)
- Specified by:
detectIndex
in interfaceOrderedIterable<T>
-
detectLastIndex
public int detectLastIndex(Predicate<? super T> predicate)
- Specified by:
detectLastIndex
in interfaceReversibleIterable<T>
-
min
public T min(Comparator<? super T> comparator)
- Specified by:
min
in interfaceRichIterable<T>
- Overrides:
min
in classAbstractRichIterable<T>
-
max
public T max(Comparator<? super T> comparator)
- Specified by:
max
in interfaceRichIterable<T>
- Overrides:
max
in classAbstractRichIterable<T>
-
min
public T min()
- Specified by:
min
in interfaceOrderedIterable<T>
- Specified by:
min
in interfaceRichIterable<T>
- Overrides:
min
in classAbstractRichIterable<T>
-
max
public T max()
- Specified by:
max
in interfaceOrderedIterable<T>
- Specified by:
max
in interfaceRichIterable<T>
- Overrides:
max
in classAbstractRichIterable<T>
-
minBy
public <V extends Comparable<? super V>> T minBy(Function<? super T,? extends V> function)
- Specified by:
minBy
in interfaceRichIterable<T>
- Overrides:
minBy
in classAbstractRichIterable<T>
-
maxBy
public <V extends Comparable<? super V>> T maxBy(Function<? super T,? extends V> function)
- Specified by:
maxBy
in interfaceRichIterable<T>
- Overrides:
maxBy
in classAbstractRichIterable<T>
-
count
public int count(Predicate<? super T> predicate)
- Specified by:
count
in interfaceRichIterable<T>
- Overrides:
count
in classAbstractRichIterable<T>
-
countWith
public <P> int countWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
countWith
in interfaceRichIterable<T>
- Overrides:
countWith
in classAbstractRichIterable<T>
-
corresponds
public <S> boolean corresponds(OrderedIterable<S> other, Predicate2<? super T,? super S> predicate)
- Specified by:
corresponds
in interfaceOrderedIterable<T>
-
anySatisfy
public boolean anySatisfy(Predicate<? super T> predicate)
- Specified by:
anySatisfy
in interfaceRichIterable<T>
- Overrides:
anySatisfy
in classAbstractRichIterable<T>
-
anySatisfyWith
public <P> boolean anySatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
anySatisfyWith
in interfaceRichIterable<T>
- Overrides:
anySatisfyWith
in classAbstractRichIterable<T>
-
allSatisfy
public boolean allSatisfy(Predicate<? super T> predicate)
- Specified by:
allSatisfy
in interfaceRichIterable<T>
- Overrides:
allSatisfy
in classAbstractRichIterable<T>
-
allSatisfyWith
public <P> boolean allSatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
allSatisfyWith
in interfaceRichIterable<T>
- Overrides:
allSatisfyWith
in classAbstractRichIterable<T>
-
noneSatisfy
public boolean noneSatisfy(Predicate<? super T> predicate)
- Specified by:
noneSatisfy
in interfaceRichIterable<T>
- Overrides:
noneSatisfy
in classAbstractRichIterable<T>
-
noneSatisfyWith
public <P> boolean noneSatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
noneSatisfyWith
in interfaceRichIterable<T>
- Overrides:
noneSatisfyWith
in classAbstractRichIterable<T>
-
injectInto
public <IV> IV injectInto(IV injectedValue, Function2<? super IV,? super T,? extends IV> function)
- Specified by:
injectInto
in interfaceRichIterable<T>
- Overrides:
injectInto
in classAbstractRichIterable<T>
-
injectInto
public int injectInto(int injectedValue, IntObjectToIntFunction<? super T> function)
- Specified by:
injectInto
in interfaceRichIterable<T>
- Overrides:
injectInto
in classAbstractRichIterable<T>
-
injectInto
public float injectInto(float injectedValue, FloatObjectToFloatFunction<? super T> function)
- Specified by:
injectInto
in interfaceRichIterable<T>
- Overrides:
injectInto
in classAbstractRichIterable<T>
-
distinct
public MutableList<T> distinct()
- Specified by:
distinct
in interfaceListIterable<T>
- Specified by:
distinct
in interfaceMutableList<T>
- Specified by:
distinct
in interfaceOrderedIterable<T>
- Specified by:
distinct
in interfaceReversibleIterable<T>
-
distinct
public MutableList<T> distinct(HashingStrategy<? super T> hashingStrategy)
- Specified by:
distinct
in interfaceListIterable<T>
- Specified by:
distinct
in interfaceMutableList<T>
-
distinctBy
public <V> MutableList<T> distinctBy(Function<? super T,? extends V> function)
- Specified by:
distinctBy
in interfaceListIterable<T>
- Specified by:
distinctBy
in interfaceMutableList<T>
- Since:
- 9.0
-
sumOfInt
public long sumOfInt(IntFunction<? super T> function)
- Specified by:
sumOfInt
in interfaceRichIterable<T>
- Overrides:
sumOfInt
in classAbstractRichIterable<T>
-
sumOfLong
public long sumOfLong(LongFunction<? super T> function)
- Specified by:
sumOfLong
in interfaceRichIterable<T>
- Overrides:
sumOfLong
in classAbstractRichIterable<T>
-
sumOfFloat
public double sumOfFloat(FloatFunction<? super T> function)
- Specified by:
sumOfFloat
in interfaceRichIterable<T>
- Overrides:
sumOfFloat
in classAbstractRichIterable<T>
-
sumOfDouble
public double sumOfDouble(DoubleFunction<? super T> function)
- Specified by:
sumOfDouble
in interfaceRichIterable<T>
- Overrides:
sumOfDouble
in classAbstractRichIterable<T>
-
injectInto
public long injectInto(long injectedValue, LongObjectToLongFunction<? super T> function)
- Specified by:
injectInto
in interfaceRichIterable<T>
- Overrides:
injectInto
in classAbstractRichIterable<T>
-
injectIntoWith
public <IV,P> IV injectIntoWith(IV injectValue, Function3<? super IV,? super T,? super P,? extends IV> function, P parameter)
- Specified by:
injectIntoWith
in interfaceMutableCollection<T>
- Overrides:
injectIntoWith
in classAbstractMutableCollection<T>
-
toSortedList
public MutableList<T> toSortedList()
- Specified by:
toSortedList
in interfaceRichIterable<T>
-
toSet
public MutableSet<T> toSet()
- Specified by:
toSet
in interfaceRichIterable<T>
- Overrides:
toSet
in classAbstractRichIterable<T>
-
asUnmodifiable
public MutableList<T> asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableCollection<T>
- Specified by:
asUnmodifiable
in interfaceMutableList<T>
-
asSynchronized
public MutableList<T> asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableCollection<T>
- Specified by:
asSynchronized
in interfaceMutableList<T>
-
sortThisByInt
public MutableList<T> sortThisByInt(IntFunction<? super T> function)
- Specified by:
sortThisByInt
in interfaceMutableList<T>
-
sortThisByBoolean
public MutableList<T> sortThisByBoolean(BooleanFunction<? super T> function)
- Specified by:
sortThisByBoolean
in interfaceMutableList<T>
-
sortThisByChar
public MutableList<T> sortThisByChar(CharFunction<? super T> function)
- Specified by:
sortThisByChar
in interfaceMutableList<T>
-
sortThisByByte
public MutableList<T> sortThisByByte(ByteFunction<? super T> function)
- Specified by:
sortThisByByte
in interfaceMutableList<T>
-
sortThisByShort
public MutableList<T> sortThisByShort(ShortFunction<? super T> function)
- Specified by:
sortThisByShort
in interfaceMutableList<T>
-
sortThisByFloat
public MutableList<T> sortThisByFloat(FloatFunction<? super T> function)
- Specified by:
sortThisByFloat
in interfaceMutableList<T>
-
sortThisByLong
public MutableList<T> sortThisByLong(LongFunction<? super T> function)
- Specified by:
sortThisByLong
in interfaceMutableList<T>
-
sortThisByDouble
public MutableList<T> sortThisByDouble(DoubleFunction<? super T> function)
- Specified by:
sortThisByDouble
in interfaceMutableList<T>
-
newEmpty
public MutableList<T> newEmpty()
- Specified by:
newEmpty
in interfaceMutableCollection<T>
- Specified by:
newEmpty
in interfaceMutableList<T>
-
tap
public MutableList<T> tap(Procedure<? super T> procedure)
- Specified by:
tap
in interfaceListIterable<T>
- Specified by:
tap
in interfaceMutableCollection<T>
- Specified by:
tap
in interfaceMutableList<T>
- Specified by:
tap
in interfaceOrderedIterable<T>
- Specified by:
tap
in interfaceReversibleIterable<T>
- Specified by:
tap
in interfaceRichIterable<T>
-
forEach
public void forEach(int from, int to, Procedure<? super T> procedure)
- Specified by:
forEach
in interfaceOrderedIterable<T>
-
indexOf
public int indexOf(Object object)
- Specified by:
indexOf
in interfaceList<T>
- Specified by:
indexOf
in interfaceMutableList<T>
- Specified by:
indexOf
in interfaceOrderedIterable<T>
-
lastIndexOf
public int lastIndexOf(Object object)
- Specified by:
lastIndexOf
in interfaceList<T>
- Specified by:
lastIndexOf
in interfaceListIterable<T>
-
listIterator
public ListIterator<T> listIterator()
- Specified by:
listIterator
in interfaceList<T>
- Specified by:
listIterator
in interfaceListIterable<T>
-
listIterator
public ListIterator<T> listIterator(int index)
- Specified by:
listIterator
in interfaceList<T>
- Specified by:
listIterator
in interfaceListIterable<T>
-
subList
public MutableList<T> subList(int fromIndex, int toIndex)
- Specified by:
subList
in interfaceList<T>
- Specified by:
subList
in interfaceListIterable<T>
- Specified by:
subList
in interfaceMutableList<T>
-
contains
public boolean contains(Object object)
- Specified by:
contains
in interfaceCollection<T>
- Specified by:
contains
in interfaceList<T>
- Specified by:
contains
in interfaceRichIterable<T>
- Overrides:
contains
in classAbstractRichIterable<T>
-
containsAll
public boolean containsAll(Collection<?> source)
- Specified by:
containsAll
in interfaceCollection<T>
- Specified by:
containsAll
in interfaceList<T>
- Specified by:
containsAll
in interfaceRichIterable<T>
- Overrides:
containsAll
in classAbstractRichIterable<T>
-
removeAll
public boolean removeAll(Collection<?> collection)
- Specified by:
removeAll
in interfaceCollection<T>
- Specified by:
removeAll
in interfaceList<T>
- Overrides:
removeAll
in classAbstractMutableCollection<T>
-
retainAll
public boolean retainAll(Collection<?> collection)
- Specified by:
retainAll
in interfaceCollection<T>
- Specified by:
retainAll
in interfaceList<T>
- Overrides:
retainAll
in classAbstractMutableCollection<T>
-
getFirst
public T getFirst()
- Specified by:
getFirst
in interfaceListIterable<T>
- Specified by:
getFirst
in interfaceMutableList<T>
- Specified by:
getFirst
in interfaceOrderedIterable<T>
- Specified by:
getFirst
in interfaceRichIterable<T>
-
getLast
public T getLast()
- Specified by:
getLast
in interfaceListIterable<T>
- Specified by:
getLast
in interfaceMutableList<T>
- Specified by:
getLast
in interfaceOrderedIterable<T>
- Specified by:
getLast
in interfaceRichIterable<T>
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendString
in interfaceRichIterable<T>
- Overrides:
appendString
in classAbstractRichIterable<T>
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendString
in interfaceRichIterable<T>
- Overrides:
appendString
in classAbstractRichIterable<T>
-
groupBy
public <V> FastListMultimap<V,T> groupBy(Function<? super T,? extends V> function)
- Specified by:
groupBy
in interfaceListIterable<T>
- Specified by:
groupBy
in interfaceMutableCollection<T>
- Specified by:
groupBy
in interfaceMutableList<T>
- Specified by:
groupBy
in interfaceOrderedIterable<T>
- Specified by:
groupBy
in interfaceReversibleIterable<T>
- Specified by:
groupBy
in interfaceRichIterable<T>
-
groupByEach
public <V> FastListMultimap<V,T> groupByEach(Function<? super T,? extends Iterable<V>> function)
- Specified by:
groupByEach
in interfaceListIterable<T>
- Specified by:
groupByEach
in interfaceMutableCollection<T>
- Specified by:
groupByEach
in interfaceMutableList<T>
- Specified by:
groupByEach
in interfaceOrderedIterable<T>
- Specified by:
groupByEach
in interfaceReversibleIterable<T>
- Specified by:
groupByEach
in interfaceRichIterable<T>
-
groupByUniqueKey
public <K> MutableMap<K,T> groupByUniqueKey(Function<? super T,? extends K> function)
- Specified by:
groupByUniqueKey
in interfaceMutableCollection<T>
- Specified by:
groupByUniqueKey
in interfaceRichIterable<T>
- Overrides:
groupByUniqueKey
in classAbstractMutableCollection<T>
-
zip
public <S> MutableList<Pair<T,S>> zip(Iterable<S> that)
- Specified by:
zip
in interfaceListIterable<T>
- Specified by:
zip
in interfaceMutableCollection<T>
- Specified by:
zip
in interfaceMutableList<T>
- Specified by:
zip
in interfaceOrderedIterable<T>
- Specified by:
zip
in interfaceReversibleIterable<T>
- Specified by:
zip
in interfaceRichIterable<T>
-
zipWithIndex
public MutableList<Pair<T,Integer>> zipWithIndex()
- Specified by:
zipWithIndex
in interfaceListIterable<T>
- Specified by:
zipWithIndex
in interfaceMutableCollection<T>
- Specified by:
zipWithIndex
in interfaceMutableList<T>
- Specified by:
zipWithIndex
in interfaceOrderedIterable<T>
- Specified by:
zipWithIndex
in interfaceReversibleIterable<T>
- Specified by:
zipWithIndex
in interfaceRichIterable<T>
-
asReversed
public ReverseIterable<T> asReversed()
- Specified by:
asReversed
in interfaceReversibleIterable<T>
-
asParallel
public ParallelListIterable<T> asParallel(ExecutorService executorService, int batchSize)
- Specified by:
asParallel
in interfaceListIterable<T>
-
binarySearch
public int binarySearch(T key, Comparator<? super T> comparator)
- Specified by:
binarySearch
in interfaceListIterable<T>
-
chunk
public RichIterable<RichIterable<T>> chunk(int size)
- Specified by:
chunk
in interfaceRichIterable<T>
- Overrides:
chunk
in classAbstractMutableCollection<T>
-
take
public MutableList<T> take(int count)
- Specified by:
take
in interfaceListIterable<T>
- Specified by:
take
in interfaceMutableList<T>
- Specified by:
take
in interfaceReversibleIterable<T>
-
takeWhile
public MutableList<T> takeWhile(Predicate<? super T> predicate)
- Specified by:
takeWhile
in interfaceListIterable<T>
- Specified by:
takeWhile
in interfaceMutableList<T>
- Specified by:
takeWhile
in interfaceOrderedIterable<T>
- Specified by:
takeWhile
in interfaceReversibleIterable<T>
-
drop
public MutableList<T> drop(int count)
- Specified by:
drop
in interfaceListIterable<T>
- Specified by:
drop
in interfaceMutableList<T>
- Specified by:
drop
in interfaceReversibleIterable<T>
-
dropWhile
public MutableList<T> dropWhile(Predicate<? super T> predicate)
- Specified by:
dropWhile
in interfaceListIterable<T>
- Specified by:
dropWhile
in interfaceMutableList<T>
- Specified by:
dropWhile
in interfaceOrderedIterable<T>
- Specified by:
dropWhile
in interfaceReversibleIterable<T>
-
partitionWhile
public PartitionMutableList<T> partitionWhile(Predicate<? super T> predicate)
- Specified by:
partitionWhile
in interfaceListIterable<T>
- Specified by:
partitionWhile
in interfaceMutableList<T>
- Specified by:
partitionWhile
in interfaceOrderedIterable<T>
- Specified by:
partitionWhile
in interfaceReversibleIterable<T>
-
-