Class AbstractArrayAdapter<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>
org.eclipse.collections.impl.list.fixed.AbstractArrayAdapter<T>
- All Implemented Interfaces:
Cloneable,Iterable<T>,Collection<T>,List<T>,RandomAccess,MutableCollection<T>,InternalIterable<T>,ListIterable<T>,MutableList<T>,OrderedIterable<T>,ReversibleIterable<T>,RichIterable<T>
- Direct Known Subclasses:
ArrayAdapter
public abstract class AbstractArrayAdapter<T>
extends AbstractMutableList<T>
implements RandomAccess
-
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidbooleanaddAll(int index, Collection<? extends T> collection) booleanaddAll(Collection<? extends T> collection) booleanaddAllIterable(Iterable<? extends T> iterable) booleanallSatisfy(Predicate<? super T> predicate) <P> booleanallSatisfyWith(Predicate2<? super T, ? super P> predicate, P parameter) booleananySatisfy(Predicate<? super T> predicate) <P> booleananySatisfyWith(Predicate2<? super T, ? super P> predicate, P parameter) voidappendString(Appendable appendable, String start, String separator, String end) voidclear()<V> MutableList<V><V,R extends Collection<V>>
R<V,R extends Collection<V>>
R<P,A> MutableList<A> collectWith(Function2<? super T, ? super P, ? extends A> function, P parameter) <P,A, R extends Collection<A>>
RcollectWith(Function2<? super T, ? super P, ? extends A> function, P parameter, R target) boolean<S> booleancorresponds(OrderedIterable<S> other, Predicate2<? super T, ? super S> predicate) int<P> intcountWith(Predicate2<? super T, ? super P> predicate, P parameter) intdetectIndex(Predicate<? super T> predicate) intdetectLastIndex(Predicate<? super T> predicate) detectOptional(Predicate<? super T> predicate) <P> TdetectWith(Predicate2<? super T, ? super P> predicate, P parameter) detectWithOptional(Predicate2<? super T, ? super P> predicate, P parameter) distinct()distinct(HashingStrategy<? super T> hashingStrategy) drop(int count) voidboolean<V> MutableList<V>flatCollect(Function<? super T, ? extends Iterable<V>> function) <V,R extends Collection<V>>
RflatCollect(Function<? super T, ? extends Iterable<V>> function, R target) void<P> voidforEachWith(Procedure2<? super T, ? super P> procedure, P parameter) voidforEachWithIndex(int fromIndex, int toIndex, ObjectIntProcedure<? super T> objectIntProcedure) voidforEachWithIndex(ObjectIntProcedure<? super T> objectIntProcedure) get(int index) getFirst()getLast()inthashCode()int<IV> IVinjectInto(IV injectedValue, Function2<? super IV, ? super T, ? extends IV> function) <IV,P> IV injectIntoWith(IV injectValue, Function3<? super IV, ? super T, ? super P, ? extends IV> function, P parameter) booleanisEmpty()iterator()intlastIndexOf(Object item) listIterator(int index) booleannoneSatisfy(Predicate<? super T> predicate) <P> booleannoneSatisfyWith(Predicate2<? super T, ? super P> predicate, P parameter) booleannotEmpty()<R extends Collection<T>>
R<P,R extends Collection<T>>
RrejectWith(Predicate2<? super T, ? super P> predicate, P parameter, R target) remove(int index) booleanbooleanremoveAll(Collection<?> collection) booleanremoveAllIterable(Iterable<?> iterable) boolean<P> booleanremoveIfWith(Predicate2<? super T, ? super P> predicate, P parameter) voidreplaceAll(UnaryOperator<T> operator) booleanretainAll(Collection<?> collection) booleanretainAllIterable(Iterable<?> iterable) <R extends Collection<T>>
R<P> Twin<MutableList<T>>selectAndRejectWith(Predicate2<? super T, ? super P> predicate, P parameter) <P,R extends Collection<T>>
RselectWith(Predicate2<? super T, ? super P> predicate, P parameter, R target) intsize()voidsort(Comparator<? super T> comparator) subList(int fromIndex, int toIndex) take(int count) Object[]toArray()<E> E[]toArray(E[] array) Methods inherited from class org.eclipse.collections.impl.list.mutable.AbstractMutableList
appendString, asParallel, asReversed, asSynchronized, asUnmodifiable, binarySearch, chunk, clone, containsAll, distinctBy, dropWhile, groupBy, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, listIterator, max, max, maxBy, min, min, minBy, newEmpty, partition, partitionWhile, partitionWith, selectInstancesOf, sortThisByBoolean, sortThisByByte, sortThisByChar, sortThisByDouble, sortThisByFloat, sortThisByInt, sortThisByLong, sortThisByShort, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, takeWhile, tap, toSet, toSortedList, zip, zip, zipWithIndex, zipWithIndexMethods inherited from class org.eclipse.collections.impl.collection.mutable.AbstractMutableCollection
add, countBy, countByEach, countByWith, reduce, sumByDouble, sumByFloat, sumByInt, sumByLongMethods inherited from class org.eclipse.collections.impl.AbstractRichIterable
asLazy, containsAllArguments, containsAllIterable, detectWithIfNone, forEach, groupBy, groupByEach, groupByUniqueKey, injectInto, into, toBag, toBiMap, toList, toMap, toSortedBag, toSortedBag, toSortedBagBy, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, toStringMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface org.eclipse.collections.api.InternalIterable
forEachMethods inherited from interface java.util.List
add, set, spliteratorMethods inherited from interface org.eclipse.collections.api.list.ListIterable
binarySearch, forEachInBothMethods inherited from interface org.eclipse.collections.api.collection.MutableCollection
aggregateBy, aggregateInPlaceBy, countBy, countByEach, countByWith, sumByDouble, sumByFloat, sumByInt, sumByLongMethods inherited from interface org.eclipse.collections.api.list.MutableList
collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWithIndex, flatCollectWith, reject, rejectWith, rejectWithIndex, reverseThis, select, selectWith, selectWithIndex, shuffleThis, shuffleThis, sortThis, sortThis, sortThisBy, toImmutable, toImmutableList, toReversed, with, withAll, without, withoutAllMethods inherited from interface org.eclipse.collections.api.ordered.OrderedIterable
collectWithIndex, getFirstOptional, getLastOptional, rejectWithIndex, selectWithIndex, toStackMethods inherited from interface org.eclipse.collections.api.ordered.ReversibleIterable
reverseForEach, reverseForEachWithIndexMethods 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, makeString, makeString, makeString, makeString, maxByOptional, maxOptional, maxOptional, minByOptional, minOptional, minOptional, reduce, reduceBy, reduceBy, reduceInPlace, reduceInPlace, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, 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 Details
-
notEmpty
public boolean notEmpty()- Specified by:
notEmptyin interfaceRichIterable<T>
-
getFirst
- Specified by:
getFirstin interfaceListIterable<T>- Specified by:
getFirstin interfaceMutableList<T>- Specified by:
getFirstin interfaceOrderedIterable<T>- Specified by:
getFirstin interfaceRichIterable<T>- Overrides:
getFirstin classAbstractMutableList<T>
-
getLast
- Specified by:
getLastin interfaceListIterable<T>- Specified by:
getLastin interfaceMutableList<T>- Specified by:
getLastin interfaceOrderedIterable<T>- Specified by:
getLastin interfaceRichIterable<T>- Overrides:
getLastin classAbstractMutableList<T>
-
each
- Specified by:
eachin interfaceRichIterable<T>- Overrides:
eachin classAbstractMutableList<T>
-
forEachWithIndex
- Specified by:
forEachWithIndexin interfaceInternalIterable<T>- Specified by:
forEachWithIndexin interfaceOrderedIterable<T>- Overrides:
forEachWithIndexin classAbstractMutableList<T>
-
forEachWithIndex
public void forEachWithIndex(int fromIndex, int toIndex, ObjectIntProcedure<? super T> objectIntProcedure) - Specified by:
forEachWithIndexin interfaceOrderedIterable<T>- Overrides:
forEachWithIndexin classAbstractMutableList<T>
-
removeIf
- Specified by:
removeIfin interfaceMutableCollection<T>- Overrides:
removeIfin classAbstractMutableList<T>
-
removeIfWith
- Specified by:
removeIfWithin interfaceMutableCollection<T>- Overrides:
removeIfWithin classAbstractMutableList<T>
-
detect
- Specified by:
detectin interfaceRichIterable<T>- Overrides:
detectin classAbstractMutableList<T>
-
detectWith
- Specified by:
detectWithin interfaceRichIterable<T>- Overrides:
detectWithin classAbstractMutableList<T>
-
detectOptional
- Specified by:
detectOptionalin interfaceRichIterable<T>- Overrides:
detectOptionalin classAbstractMutableList<T>
-
detectWithOptional
- Specified by:
detectWithOptionalin interfaceRichIterable<T>- Overrides:
detectWithOptionalin classAbstractMutableList<T>
-
detectIndex
- Specified by:
detectIndexin interfaceOrderedIterable<T>- Overrides:
detectIndexin classAbstractMutableList<T>
-
detectLastIndex
- Specified by:
detectLastIndexin interfaceReversibleIterable<T>- Overrides:
detectLastIndexin classAbstractMutableList<T>
-
count
- Specified by:
countin interfaceRichIterable<T>- Overrides:
countin classAbstractMutableList<T>
-
corresponds
- Specified by:
correspondsin interfaceOrderedIterable<T>- Overrides:
correspondsin classAbstractMutableList<T>
-
anySatisfy
- Specified by:
anySatisfyin interfaceRichIterable<T>- Overrides:
anySatisfyin classAbstractMutableList<T>
-
allSatisfy
- Specified by:
allSatisfyin interfaceRichIterable<T>- Overrides:
allSatisfyin classAbstractMutableList<T>
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceRichIterable<T>- Overrides:
noneSatisfyin classAbstractMutableList<T>
-
injectInto
- Specified by:
injectIntoin interfaceRichIterable<T>- Overrides:
injectIntoin classAbstractMutableList<T>
-
select
- Specified by:
selectin interfaceRichIterable<T>- Overrides:
selectin classAbstractMutableList<T>
-
reject
- Specified by:
rejectin interfaceRichIterable<T>- Overrides:
rejectin classAbstractMutableList<T>
-
collect
- Specified by:
collectin interfaceListIterable<T>- Specified by:
collectin interfaceMutableCollection<T>- Specified by:
collectin interfaceMutableList<T>- Specified by:
collectin interfaceOrderedIterable<T>- Specified by:
collectin interfaceReversibleIterable<T>- Specified by:
collectin interfaceRichIterable<T>
-
collect
- Specified by:
collectin interfaceRichIterable<T>- Overrides:
collectin classAbstractMutableList<T>
-
collectIf
public <V,R extends Collection<V>> R collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function, R target) - Specified by:
collectIfin interfaceRichIterable<T>- Overrides:
collectIfin classAbstractMutableList<T>
-
flatCollect
- Specified by:
flatCollectin interfaceListIterable<T>- Specified by:
flatCollectin interfaceMutableCollection<T>- Specified by:
flatCollectin interfaceMutableList<T>- Specified by:
flatCollectin interfaceOrderedIterable<T>- Specified by:
flatCollectin interfaceReversibleIterable<T>- Specified by:
flatCollectin interfaceRichIterable<T>
-
flatCollect
public <V,R extends Collection<V>> R flatCollect(Function<? super T, ? extends Iterable<V>> function, R target) - Specified by:
flatCollectin interfaceRichIterable<T>- Overrides:
flatCollectin classAbstractMutableList<T>
-
selectAndRejectWith
public <P> Twin<MutableList<T>> selectAndRejectWith(Predicate2<? super T, ? super P> predicate, P parameter) - Specified by:
selectAndRejectWithin interfaceMutableCollection<T>- Overrides:
selectAndRejectWithin classAbstractMutableList<T>
-
size
public int size()- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein interfaceList<T>- Specified by:
sizein interfaceRichIterable<T>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<T>- Specified by:
isEmptyin interfaceList<T>- Specified by:
isEmptyin interfaceRichIterable<T>- Overrides:
isEmptyin classAbstractRichIterable<T>
-
contains
- Specified by:
containsin interfaceCollection<T>- Specified by:
containsin interfaceList<T>- Specified by:
containsin interfaceRichIterable<T>- Overrides:
containsin classAbstractMutableList<T>
-
iterator
-
toArray
- Specified by:
toArrayin interfaceCollection<T>- Specified by:
toArrayin interfaceList<T>- Specified by:
toArrayin interfaceMutableCollection<T>- Specified by:
toArrayin interfaceMutableList<T>- Specified by:
toArrayin interfaceRichIterable<T>
-
toArray
public <E> E[] toArray(E[] array) - Specified by:
toArrayin interfaceCollection<T>- Specified by:
toArrayin interfaceList<T>- Specified by:
toArrayin interfaceMutableCollection<T>- Specified by:
toArrayin interfaceMutableList<T>- Specified by:
toArrayin interfaceRichIterable<T>
-
remove
- Specified by:
removein interfaceCollection<T>- Specified by:
removein interfaceList<T>- Overrides:
removein classAbstractMutableCollection<T>
-
addAll
- Specified by:
addAllin interfaceCollection<T>- Specified by:
addAllin interfaceList<T>- Overrides:
addAllin classAbstractMutableCollection<T>
-
addAllIterable
- Specified by:
addAllIterablein interfaceMutableCollection<T>- Overrides:
addAllIterablein classAbstractMutableCollection<T>
-
removeAll
- Specified by:
removeAllin interfaceCollection<T>- Specified by:
removeAllin interfaceList<T>- Overrides:
removeAllin classAbstractMutableList<T>
-
removeAllIterable
- Specified by:
removeAllIterablein interfaceMutableCollection<T>- Overrides:
removeAllIterablein classAbstractMutableCollection<T>
-
retainAll
- Specified by:
retainAllin interfaceCollection<T>- Specified by:
retainAllin interfaceList<T>- Overrides:
retainAllin classAbstractMutableList<T>
-
retainAllIterable
- Specified by:
retainAllIterablein interfaceMutableCollection<T>- Overrides:
retainAllIterablein classAbstractMutableCollection<T>
-
replaceAll
- Specified by:
replaceAllin interfaceList<T>- Since:
- 10.0 - Overridden for efficiency
-
sort
-
clear
public void clear()- Specified by:
clearin interfaceCollection<T>- Specified by:
clearin interfaceList<T>- Overrides:
clearin classAbstractMutableList<T>
-
addAll
-
get
-
add
-
remove
-
indexOf
- Specified by:
indexOfin interfaceList<T>- Specified by:
indexOfin interfaceMutableList<T>- Specified by:
indexOfin interfaceOrderedIterable<T>- Overrides:
indexOfin classAbstractMutableList<T>
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<T>- Specified by:
lastIndexOfin interfaceListIterable<T>- Overrides:
lastIndexOfin classAbstractMutableList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>- Specified by:
listIteratorin interfaceListIterable<T>- Overrides:
listIteratorin classAbstractMutableList<T>
-
subList
- Specified by:
subListin interfaceList<T>- Specified by:
subListin interfaceListIterable<T>- Specified by:
subListin interfaceMutableList<T>- Overrides:
subListin classAbstractMutableList<T>
-
equals
- Specified by:
equalsin interfaceCollection<T>- Specified by:
equalsin interfaceList<T>- Specified by:
equalsin interfaceListIterable<T>- Overrides:
equalsin classAbstractMutableList<T>
-
abstractArrayAdapterEquals
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<T>- Specified by:
hashCodein interfaceList<T>- Specified by:
hashCodein interfaceListIterable<T>- Overrides:
hashCodein classAbstractMutableList<T>
-
forEachWith
- Specified by:
forEachWithin interfaceInternalIterable<T>- Overrides:
forEachWithin classAbstractMutableList<T>
-
selectWith
public <P,R extends Collection<T>> R selectWith(Predicate2<? super T, ? super P> predicate, P parameter, R target) - Specified by:
selectWithin interfaceRichIterable<T>- Overrides:
selectWithin classAbstractMutableList<T>
-
rejectWith
public <P,R extends Collection<T>> R rejectWith(Predicate2<? super T, ? super P> predicate, P parameter, R target) - Specified by:
rejectWithin interfaceRichIterable<T>- Overrides:
rejectWithin classAbstractMutableList<T>
-
collectWith
public <P,A> MutableList<A> collectWith(Function2<? super T, ? super P, ? extends A> function, P parameter) - Specified by:
collectWithin interfaceListIterable<T>- Specified by:
collectWithin interfaceMutableCollection<T>- Specified by:
collectWithin interfaceMutableList<T>- Specified by:
collectWithin interfaceOrderedIterable<T>- Specified by:
collectWithin interfaceReversibleIterable<T>- Specified by:
collectWithin interfaceRichIterable<T>
-
collectWith
public <P,A, R collectWithR extends Collection<A>> (Function2<? super T, ? super P, ? extends A> function, P parameter, R target) - Specified by:
collectWithin interfaceRichIterable<T>- Overrides:
collectWithin classAbstractMutableList<T>
-
injectIntoWith
public <IV,P> IV injectIntoWith(IV injectValue, Function3<? super IV, ? super T, ? super P, ? extends IV> function, P parameter) - Specified by:
injectIntoWithin interfaceMutableCollection<T>- Overrides:
injectIntoWithin classAbstractMutableList<T>
-
forEach
- Specified by:
forEachin interfaceOrderedIterable<T>- Overrides:
forEachin classAbstractMutableList<T>
-
countWith
- Specified by:
countWithin interfaceRichIterable<T>- Overrides:
countWithin classAbstractMutableList<T>
-
anySatisfyWith
- Specified by:
anySatisfyWithin interfaceRichIterable<T>- Overrides:
anySatisfyWithin classAbstractMutableList<T>
-
allSatisfyWith
- Specified by:
allSatisfyWithin interfaceRichIterable<T>- Overrides:
allSatisfyWithin classAbstractMutableList<T>
-
noneSatisfyWith
- Specified by:
noneSatisfyWithin interfaceRichIterable<T>- Overrides:
noneSatisfyWithin classAbstractMutableList<T>
-
distinct
- Specified by:
distinctin interfaceListIterable<T>- Specified by:
distinctin interfaceMutableList<T>- Specified by:
distinctin interfaceOrderedIterable<T>- Specified by:
distinctin interfaceReversibleIterable<T>- Overrides:
distinctin classAbstractMutableList<T>
-
distinct
- Specified by:
distinctin interfaceListIterable<T>- Specified by:
distinctin interfaceMutableList<T>- Overrides:
distinctin classAbstractMutableList<T>
-
appendString
- Specified by:
appendStringin interfaceRichIterable<T>- Overrides:
appendStringin classAbstractMutableList<T>
-
take
- Specified by:
takein interfaceListIterable<T>- Specified by:
takein interfaceMutableList<T>- Specified by:
takein interfaceReversibleIterable<T>- Overrides:
takein classAbstractMutableList<T>
-
drop
- Specified by:
dropin interfaceListIterable<T>- Specified by:
dropin interfaceMutableList<T>- Specified by:
dropin interfaceReversibleIterable<T>- Overrides:
dropin classAbstractMutableList<T>
-