public final class ArrayAdapter<T> extends AbstractArrayAdapter<T> implements Serializable, FixedSizeList<T>
AbstractMutableCollection.add(Object), AbstractArrayAdapter.addAll(Collection), AbstractArrayAdapter.remove(Object), AbstractArrayAdapter.removeAll(Collection), etc. are not supported and will throw
an UnsupportedOperationException. In addition, the mutating iteration methods
AbstractArrayAdapter.removeIf(org.eclipse.collections.api.block.predicate.Predicate) and AbstractArrayAdapter.removeIfWith(org.eclipse.collections.api.block.predicate.Predicate2, Object) are not supported and will also
throw an UnsupportedOperationException.
The with(Object) method is not an exception to the above restrictions, as it will create a new
instance of this class with the existing contents plus the new item.
To create a wrapper around an existing array, use the adapt(Object[]) factory method. To wrap the contents
of an existing Collection instance, use the newArray(Iterable) or newArrayWithItem(Iterable, Object)
factory methods. To wrap existing objects in a new array, use one of the newArrayWith(Object) factory methods.
| Modifier and Type | Method and Description |
|---|---|
static <E> ArrayAdapter<E> |
adapt(E... array) |
ArrayAdapter<T> |
clone() |
static <E> ArrayAdapter<E> |
newArray() |
static <E> ArrayAdapter<E> |
newArray(Iterable<? extends E> source) |
static <E> ArrayAdapter<E> |
newArrayWith(E... elements) |
static <E> ArrayAdapter<E> |
newArrayWith(E one) |
static <E> ArrayAdapter<E> |
newArrayWith(E one,
E two) |
static <E> ArrayAdapter<E> |
newArrayWith(E one,
E two,
E three) |
static <E> ArrayAdapter<E> |
newArrayWith(E one,
E two,
E three,
E four) |
static <E> ArrayAdapter<E> |
newArrayWith(E one,
E two,
E three,
E four,
E five) |
static <E> ArrayAdapter<E> |
newArrayWith(E one,
E two,
E three,
E four,
E five,
E six) |
static <E> ArrayAdapter<E> |
newArrayWith(E one,
E two,
E three,
E four,
E five,
E six,
E seven) |
static <E> ArrayAdapter<E> |
newArrayWithItem(Iterable<? extends E> iterable,
E itemToAdd) |
T |
set(int index,
T element) |
ArrayAdapter<T> |
sortThis(Comparator<? super T> comparator) |
Spliterator<T> |
spliterator() |
FixedSizeList<T> |
tap(Procedure<? super T> procedure) |
FixedSizeList<T> |
toReversed() |
ArrayAdapter<T> |
with(T value) |
ArrayAdapter<T> |
withAll(Iterable<? extends T> elements) |
ArrayAdapter<T> |
without(T element) |
ArrayAdapter<T> |
withoutAll(Iterable<? extends T> elements) |
abstractArrayAdapterEquals, add, addAll, addAll, addAllIterable, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, clear, collect, collect, collectIf, collectWith, collectWith, contains, containsAll, corresponds, count, countWith, detect, detectIndex, detectLastIndex, detectOptional, detectWith, detectWithOptional, distinct, distinct, drop, each, equals, flatCollect, flatCollect, forEach, forEachWith, forEachWithIndex, forEachWithIndex, get, getFirst, getLast, hashCode, indexOf, injectInto, injectIntoWith, isEmpty, iterator, lastIndexOf, listIterator, noneSatisfy, noneSatisfyWith, notEmpty, reject, rejectWith, remove, remove, removeAll, removeAllIterable, removeIf, removeIfWith, replaceAll, retainAll, retainAllIterable, select, selectAndRejectWith, selectWith, size, sort, subList, take, toArray, toArrayappendString, asParallel, asReversed, asSynchronized, asUnmodifiable, binarySearch, chunk, 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, toSet, toSortedList, zip, zip, zipWithIndex, zipWithIndexadd, countBy, countByEach, countByWith, reduce, sumByDouble, sumByFloat, sumByInt, sumByLongasLazy, containsAllArguments, containsAllIterable, detectWithIfNone, forEach, groupBy, groupByEach, groupByUniqueKey, injectInto, into, toBag, toBiMap, toList, toMap, toSortedBag, toSortedBag, toSortedBagBy, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, toStringsortThisasSynchronized, asUnmodifiable, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, collectWithIndex, distinct, distinct, distinctBy, drop, dropWhile, flatCollect, flatCollectWith, groupBy, groupByEach, newEmpty, partition, partitionWhile, partitionWith, reject, rejectWith, rejectWithIndex, reverseThis, select, selectInstancesOf, selectWith, selectWithIndex, shuffleThis, shuffleThis, sortThisBy, sortThisByBoolean, sortThisByByte, sortThisByChar, sortThisByDouble, sortThisByFloat, sortThisByInt, sortThisByLong, sortThisByShort, subList, take, takeWhile, toImmutable, toImmutableList, zip, zipWithIndexadd, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, size, sort, toArray, toArrayasParallel, binarySearch, binarySearch, equals, forEachInBoth, get, getFirst, getLast, hashCode, lastIndexOf, listIterator, listIteratorasReversed, detectLastIndex, reverseForEach, reverseForEachWithIndexcollectWithIndex, corresponds, detectIndex, forEach, forEachWithIndex, forEachWithIndex, getFirstOptional, getLastOptional, indexOf, rejectWithIndex, selectWithIndex, toStackaggregateBy, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, count, countBy, countByEach, countByWith, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, flatCollectWith, getAny, getOnly, groupBy, groupByAndCollect, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, into, isEmpty, makeString, makeString, makeString, makeString, max, maxBy, maxByOptional, maxOptional, maxOptional, min, minBy, minByOptional, minOptional, minOptional, noneSatisfy, noneSatisfyWith, notEmpty, reduce, reduceInPlace, reduceInPlace, reject, rejectWith, select, selectWith, size, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toBiMap, toImmutableBag, toImmutableBiMap, toImmutableMap, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedListBy, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, toStringforEachWithadd, addAll, addAllIterable, clear, remove, removeAll, removeAllIterable, removeIf, removeIfWith, retainAll, retainAllIterableaggregateBy, aggregateInPlaceBy, countBy, countByEach, countByWith, groupByUniqueKey, injectIntoWith, selectAndRejectWith, sumByDouble, sumByFloat, sumByInt, sumByLongparallelStream, removeIf, streampublic static <E> ArrayAdapter<E> adapt(E... array)
public static <E> ArrayAdapter<E> newArray()
public static <E> ArrayAdapter<E> newArray(Iterable<? extends E> source)
public Spliterator<T> spliterator()
spliterator in interface Iterable<T>spliterator in interface Collection<T>spliterator in interface List<T>public static <E> ArrayAdapter<E> newArrayWithItem(Iterable<? extends E> iterable, E itemToAdd)
public static <E> ArrayAdapter<E> newArrayWith(E one)
public static <E> ArrayAdapter<E> newArrayWith(E one, E two)
public static <E> ArrayAdapter<E> newArrayWith(E one, E two, E three)
public static <E> ArrayAdapter<E> newArrayWith(E one, E two, E three, E four)
public static <E> ArrayAdapter<E> newArrayWith(E one, E two, E three, E four, E five)
public static <E> ArrayAdapter<E> newArrayWith(E one, E two, E three, E four, E five, E six)
public static <E> ArrayAdapter<E> newArrayWith(E one, E two, E three, E four, E five, E six, E seven)
public static <E> ArrayAdapter<E> newArrayWith(E... elements)
public ArrayAdapter<T> with(T value)
with in interface FixedSizeCollection<T>with in interface MutableCollection<T>with in interface FixedSizeList<T>with in interface MutableList<T>public ArrayAdapter<T> without(T element)
without in interface FixedSizeCollection<T>without in interface MutableCollection<T>without in interface FixedSizeList<T>without in interface MutableList<T>public ArrayAdapter<T> withAll(Iterable<? extends T> elements)
withAll in interface FixedSizeCollection<T>withAll in interface MutableCollection<T>withAll in interface FixedSizeList<T>withAll in interface MutableList<T>public ArrayAdapter<T> withoutAll(Iterable<? extends T> elements)
withoutAll in interface FixedSizeCollection<T>withoutAll in interface MutableCollection<T>withoutAll in interface FixedSizeList<T>withoutAll in interface MutableList<T>public ArrayAdapter<T> clone()
clone in interface MutableList<T>clone in class AbstractMutableList<T>public ArrayAdapter<T> sortThis(Comparator<? super T> comparator)
sortThis in interface FixedSizeList<T>sortThis in interface MutableList<T>public FixedSizeList<T> tap(Procedure<? super T> procedure)
tap in interface FixedSizeCollection<T>tap in interface MutableCollection<T>tap in interface FixedSizeList<T>tap in interface ListIterable<T>tap in interface MutableList<T>tap in interface OrderedIterable<T>tap in interface ReversibleIterable<T>tap in interface RichIterable<T>tap in class AbstractMutableList<T>public FixedSizeList<T> toReversed()
toReversed in interface FixedSizeList<T>toReversed in interface ListIterable<T>toReversed in interface MutableList<T>toReversed in interface ReversibleIterable<T>Copyright © 2004–2022. All rights reserved.