Class BoxedMutableShortList
- java.lang.Object
-
- org.eclipse.collections.impl.AbstractRichIterable<T>
-
- org.eclipse.collections.impl.collection.mutable.AbstractMutableCollection<T>
-
- org.eclipse.collections.impl.list.mutable.AbstractMutableList<java.lang.Short>
-
- org.eclipse.collections.impl.list.mutable.primitive.BoxedMutableShortList
-
- All Implemented Interfaces:
java.lang.Cloneable,java.lang.Iterable<java.lang.Short>,java.util.Collection<java.lang.Short>,java.util.List<java.lang.Short>,java.util.RandomAccess,MutableCollection<java.lang.Short>,InternalIterable<java.lang.Short>,ListIterable<java.lang.Short>,MutableList<java.lang.Short>,OrderedIterable<java.lang.Short>,ReversibleIterable<java.lang.Short>,RichIterable<java.lang.Short>
public class BoxedMutableShortList extends AbstractMutableList<java.lang.Short> implements MutableList<java.lang.Short>, java.util.RandomAccess
A boxed view of aMutableShortList. This is for scenarios where optimization is not a consideration and therefore no further methods will be optimized.This file was automatically generated from template file boxedPrimitiveList.stg.
- Since:
- 12.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.collections.impl.list.mutable.AbstractMutableList
AbstractMutableList.SubList<T>
-
-
Field Summary
Fields Modifier and Type Field Description private MutableShortListdelegate
-
Constructor Summary
Constructors Constructor Description BoxedMutableShortList(MutableShortList delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, java.lang.Short element)booleanadd(java.lang.Short item)booleanaddAll(int index, java.util.Collection<? extends java.lang.Short> c)voidclear()java.lang.Shortget(int index)Returns the item at the specified position in this list iterable.intindexOf(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.intlastIndexOf(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.lang.Shortremove(int index)java.lang.Shortset(int index, java.lang.Short element)intsize()Returns the number of items in this iterable.MutableList<java.lang.Short>subList(int fromIndex, int toIndex)-
Methods inherited from class org.eclipse.collections.impl.list.mutable.AbstractMutableList
allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, asParallel, asReversed, asSynchronized, asUnmodifiable, binarySearch, chunk, clone, collect, collectIf, collectWith, contains, containsAll, corresponds, count, countWith, detect, detectIndex, detectLastIndex, detectOptional, detectWith, detectWithOptional, distinct, distinct, distinctBy, drop, dropWhile, each, equals, flatCollect, forEach, forEachWith, forEachWithIndex, forEachWithIndex, getFirst, getLast, groupBy, groupByEach, groupByUniqueKey, hashCode, injectInto, injectInto, injectInto, injectInto, injectIntoWith, iterator, listIterator, listIterator, max, max, maxBy, min, min, minBy, newEmpty, noneSatisfy, noneSatisfyWith, partition, partitionWhile, partitionWith, reject, rejectWith, removeAll, removeIf, removeIfWith, removeRange, retainAll, select, selectAndRejectWith, selectInstancesOf, selectWith, sortThisByBoolean, sortThisByByte, sortThisByChar, sortThisByDouble, sortThisByFloat, sortThisByInt, sortThisByLong, sortThisByShort, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, take, takeWhile, tap, toSet, toSortedList, zip, zip, zipWithIndex, zipWithIndex
-
Methods inherited from class org.eclipse.collections.impl.collection.mutable.AbstractMutableCollection
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, toBag, toBiMap, toList, toMap, toSortedBag, toSortedBag, toSortedBagBy, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.collections.api.InternalIterable
forEach, forEachWith
-
Methods inherited from interface java.util.List
addAll, contains, containsAll, equals, hashCode, isEmpty, iterator, listIterator, listIterator, remove, removeAll, replaceAll, retainAll, sort, spliterator
-
Methods inherited from interface org.eclipse.collections.api.list.ListIterable
asParallel, binarySearch, binarySearch, equals, forEachInBoth, hashCode, listIterator, listIterator
-
Methods inherited from interface org.eclipse.collections.api.collection.MutableCollection
addAllIterable, aggregateBy, aggregateInPlaceBy, countBy, countByEach, countByWith, groupByUniqueKey, injectIntoWith, removeAllIterable, removeIf, removeIfWith, retainAllIterable, selectAndRejectWith, sumByDouble, sumByFloat, sumByInt, sumByLong
-
Methods inherited from interface org.eclipse.collections.api.list.MutableList
asSynchronized, asUnmodifiable, clone, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, collectWithIndex, distinct, distinct, distinctBy, drop, dropWhile, flatCollect, flatCollectWith, getFirst, getLast, groupBy, groupByEach, newEmpty, partition, partitionWhile, partitionWith, reject, rejectWith, rejectWithIndex, reverseThis, select, selectInstancesOf, selectWith, selectWithIndex, shuffleThis, shuffleThis, sortThis, sortThis, sortThisBy, sortThisByBoolean, sortThisByByte, sortThisByChar, sortThisByDouble, sortThisByFloat, sortThisByInt, sortThisByLong, sortThisByShort, take, takeWhile, tap, toArray, toArray, toImmutable, toImmutableList, toReversed, with, withAll, without, withoutAll, zip, zipWithIndex
-
Methods inherited from interface org.eclipse.collections.api.ordered.OrderedIterable
collectWithIndex, corresponds, detectIndex, forEach, forEachWithIndex, forEachWithIndex, getFirstOptional, getLastOptional, max, min, rejectWithIndex, selectWithIndex, toStack, zip, zipWithIndex
-
Methods inherited from interface org.eclipse.collections.api.ordered.ReversibleIterable
asReversed, detectLastIndex, reverseForEach, reverseForEachWithIndex
-
Methods inherited from interface org.eclipse.collections.api.RichIterable
aggregateBy, 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, forEach, 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, reduceBy, reduceBy, reduceInPlace, reduceInPlace, reject, rejectWith, select, selectWith, 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, toString
-
-
-
-
Field Detail
-
delegate
private final MutableShortList delegate
-
-
Constructor Detail
-
BoxedMutableShortList
public BoxedMutableShortList(MutableShortList delegate)
-
-
Method Detail
-
size
public int size()
Description copied from interface:RichIterableReturns the number of items in this iterable.- Specified by:
sizein interfacejava.util.Collection<java.lang.Short>- Specified by:
sizein interfacejava.util.List<java.lang.Short>- Specified by:
sizein interfaceRichIterable<java.lang.Short>
-
add
public boolean add(java.lang.Short item)
- Specified by:
addin interfacejava.util.Collection<java.lang.Short>- Specified by:
addin interfacejava.util.List<java.lang.Short>- Overrides:
addin classAbstractMutableCollection<java.lang.Short>
-
addAll
public boolean addAll(int index, java.util.Collection<? extends java.lang.Short> c)- Specified by:
addAllin interfacejava.util.List<java.lang.Short>
-
clear
public void clear()
- Specified by:
clearin interfacejava.util.Collection<java.lang.Short>- Specified by:
clearin interfacejava.util.List<java.lang.Short>- Overrides:
clearin classAbstractMutableList<java.lang.Short>
-
get
public java.lang.Short get(int index)
Description copied from interface:ListIterableReturns the item at the specified position in this list iterable.- Specified by:
getin interfacejava.util.List<java.lang.Short>- Specified by:
getin interfaceListIterable<java.lang.Short>
-
set
public java.lang.Short set(int index, java.lang.Short element)- Specified by:
setin interfacejava.util.List<java.lang.Short>
-
add
public void add(int index, java.lang.Short element)- Specified by:
addin interfacejava.util.List<java.lang.Short>
-
remove
public java.lang.Short remove(int index)
- Specified by:
removein interfacejava.util.List<java.lang.Short>
-
indexOf
public int indexOf(java.lang.Object o)
Description copied from interface:OrderedIterableReturns the index of the first occurrence of the specified item in this iterable, or -1 if this iterable does not contain the item.- Specified by:
indexOfin interfacejava.util.List<java.lang.Short>- Specified by:
indexOfin interfaceMutableList<java.lang.Short>- Specified by:
indexOfin interfaceOrderedIterable<java.lang.Short>- Overrides:
indexOfin classAbstractMutableList<java.lang.Short>- See Also:
List.indexOf(Object)
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
Description copied from interface:ListIterableReturns the index of the last occurrence of the specified item in this list, or -1 if this list does not contain the item.- Specified by:
lastIndexOfin interfacejava.util.List<java.lang.Short>- Specified by:
lastIndexOfin interfaceListIterable<java.lang.Short>- Overrides:
lastIndexOfin classAbstractMutableList<java.lang.Short>
-
subList
public MutableList<java.lang.Short> subList(int fromIndex, int toIndex)
- Specified by:
subListin interfacejava.util.List<java.lang.Short>- Specified by:
subListin interfaceListIterable<java.lang.Short>- Specified by:
subListin interfaceMutableList<java.lang.Short>- Overrides:
subListin classAbstractMutableList<java.lang.Short>- See Also:
List.subList(int, int)
-
-