Top Description Fields Constructors Methods
org.eclipse.collections.impl.list.mutable.primitive

public Class UnmodifiableShortList

extends AbstractUnmodifiableShortCollection
implements MutableShortList
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.list.primitive.MutableShortList, org.eclipse.collections.api.list.primitive.ShortList, org.eclipse.collections.api.ordered.primitive.ReversibleShortIterable, org.eclipse.collections.api.ordered.primitive.OrderedShortIterable, org.eclipse.collections.api.ShortIterable, org.eclipse.collections.api.PrimitiveIterable, org.eclipse.collections.api.collection.primitive.MutableShortCollection
Imports
java.util.Collection, org.eclipse.collections.api.ShortIterable, .LazyShortIterable, org.eclipse.collections.api.block.function.primitive.ShortIntToObjectFunction, .ShortToObjectFunction, .ObjectShortIntToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.ShortIntPredicate, .ShortPredicate, org.eclipse.collections.api.block.procedure.primitive.ShortIntProcedure, org.eclipse.collections.api.collection.primitive.MutableShortCollection, org.eclipse.collections.api.list.MutableList, org.eclipse.collections.api.tuple.primitive.ShortShortPair, .ShortObjectPair, org.eclipse.collections.api.stack.primitive.MutableShortStack, org.eclipse.collections.api.list.primitive.ShortList, .ImmutableShortList, .MutableShortList, org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableShortCollection, org.eclipse.collections.impl.factory.primitive.ShortLists, .ShortStacks, org.eclipse.collections.impl.lazy.primitive.ReverseShortIterable

This file was automatically generated from template file unmodifiablePrimitiveList.stg.
Since
3.1.

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
public boolean
public void
public LazyShortIterable
public MutableShortList
public MutableShortList
public int
public MutableList<Short>
public <V> MutableList<V>
public <V> MutableList<V>
collectWithIndex(ShortIntToObjectFunction<? extends V> function)

Overrides default org.eclipse.collections.api.list.primitive.MutableShortList.collectWithIndex.

Returns a new MutableList using results obtained by applying the specified function to each element and its corresponding index.

public <V, R extends Collection<V>> R
collectWithIndex(ShortIntToObjectFunction<? extends V> function, R target)

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedShortIterable.collectWithIndex.

Adds elements to the target Collection using results obtained by applying the specified function to each element and its corresponding index.

public MutableShortList
public long
public boolean
public void
public short
public short
public short
private MutableShortList
public int
public int
public <T> T
public int
public MutableShortList
public MutableShortList
public MutableShortList
rejectWithIndex(ShortIntPredicate predicate)

Overrides default org.eclipse.collections.api.list.primitive.MutableShortList.rejectWithIndex.

Returns a new MutableShortList excluding all elements with corresponding indexes matching the specified predicate.

public <R extends MutableShortCollection> R
rejectWithIndex(ShortIntPredicate predicate, R target)

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedShortIterable.rejectWithIndex.

Returns a new MutableShortCollection excluding all elements with corresponding indexes matching the specified predicate.

public short
public MutableShortList
public MutableShortList
public MutableShortList
selectWithIndex(ShortIntPredicate predicate)

Overrides default org.eclipse.collections.api.list.primitive.MutableShortList.selectWithIndex.

Returns a new MutableShortList including all elements with corresponding indexes matching the specified predicate.

public <R extends MutableShortCollection> R
selectWithIndex(ShortIntPredicate predicate, R target)

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedShortIterable.selectWithIndex.

Returns a new MutableShortCollection including all elements with corresponding indexes matching the specified predicate.

public short
public MutableShortList
shuffleThis()

Overrides default org.eclipse.collections.api.list.primitive.MutableShortList.shuffleThis.

Randomly permutes this list mutating its contents and returns the same list (this).

public MutableShortList
sortThis()

Implements org.eclipse.collections.api.list.primitive.MutableShortList.sortThis.

Sorts this list mutating its contents and returns the same mutable list (this).

public MutableShortList
public ImmutableShortList
public MutableShortList
public MutableShortStack
toStack()

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedShortIterable.toStack.

Converts the collection to a ShortStack.

public UnmodifiableShortList
public UnmodifiableShortList
public UnmodifiableShortList
public UnmodifiableShortList
public <T> MutableList<ShortObjectPair<T>>
zip(Iterable<T> iterable)

Overrides default org.eclipse.collections.api.list.primitive.MutableShortList.zip.

Returns a MutableList formed from this MutableShortList and a ListIterable by combining corresponding elements in pairs.

public MutableList<ShortShortPair>
zipShort(ShortIterable iterable)

Overrides default org.eclipse.collections.api.list.primitive.MutableShortList.zipShort.

Returns a MutableList formed from this MutableShortList and another ShortList by combining corresponding elements in pairs.

Inherited from org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableShortCollection:
addaddAlladdAllallSatisfyanySatisfyappendStringappendStringappendStringasLazyaveragechunkclearcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNoneeachgetShortCollectioninjectIntoisEmptymakeStringmakeStringmakeStringmaxmaxIfEmptymedianminminIfEmptynoneSatisfynotEmptyreducereduceIfEmptyremoveremoveAllremoveAllremoveIfretainAllretainAllshortIteratorsizesumtoArraytoArraytoBagtoListtoSettoSortedArraytoSortedListtoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableShortCollection.serialVersionUID.

Constructor Detail

UnmodifiableShortListback to summary
public UnmodifiableShortList(MutableShortList list)

Method Detail

addAllAtIndexback to summary
public boolean addAllAtIndex(int index, short... source)

Implements org.eclipse.collections.api.list.primitive.MutableShortList.addAllAtIndex.

Annotations
@Override
addAllAtIndexback to summary
public boolean addAllAtIndex(int index, ShortIterable source)

Implements org.eclipse.collections.api.list.primitive.MutableShortList.addAllAtIndex.

Annotations
@Override
addAtIndexback to summary
public void addAtIndex(int index, short element)

Implements org.eclipse.collections.api.list.primitive.MutableShortList.addAtIndex.

Annotations
@Override
asReversedback to summary
public LazyShortIterable asReversed()

Implements org.eclipse.collections.api.ordered.primitive.ReversibleShortIterable.asReversed.

Annotations
@Override
asSynchronizedback to summary
public MutableShortList asSynchronized()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableShortCollection.asSynchronized.

Implements org.eclipse.collections.api.list.primitive.MutableShortList.asSynchronized, org.eclipse.collections.api.collection.primitive.MutableShortCollection.asSynchronized.

Annotations
@Override
asUnmodifiableback to summary
public MutableShortList asUnmodifiable()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableShortCollection.asUnmodifiable.

Implements org.eclipse.collections.api.list.primitive.MutableShortList.asUnmodifiable, org.eclipse.collections.api.collection.primitive.MutableShortCollection.asUnmodifiable.

Annotations
@Override
binarySearchback to summary
public int binarySearch(short value)

Implements org.eclipse.collections.api.list.primitive.ShortList.binarySearch.

Annotations
@Override
boxedback to summary
public MutableList<Short> boxed()

Implements org.eclipse.collections.api.list.primitive.MutableShortList.boxed.

Annotations
@Override
collectback to summary
public <V> MutableList<V> collect(ShortToObjectFunction<? extends V> function)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableShortCollection.collect.

Implements org.eclipse.collections.api.list.primitive.MutableShortList.collect, org.eclipse.collections.api.collection.primitive.MutableShortCollection.collect.

Doc from org.eclipse.collections.api.ShortIterable.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.

Annotations
@Override
collectWithIndexback to summary
public <V> MutableList<V> collectWithIndex(ShortIntToObjectFunction<? extends V> function)

Overrides default org.eclipse.collections.api.list.primitive.MutableShortList.collectWithIndex.

Returns a new MutableList using results obtained by applying the specified function to each element and its corresponding index.

Annotations
@Override
Since
9.1.
collectWithIndexback to summary
public <V, R extends Collection<V>> R collectWithIndex(ShortIntToObjectFunction<? extends V> function, R target)

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedShortIterable.collectWithIndex.

Adds elements to the target Collection using results obtained by applying the specified function to each element and its corresponding index.

Since
9.1.
distinctback to summary
public MutableShortList distinct()

Implements org.eclipse.collections.api.list.primitive.MutableShortList.distinct.

Annotations
@Override
Since
6.0.
dotProductback to summary
public long dotProduct(ShortList list)

Implements org.eclipse.collections.api.list.primitive.ShortList.dotProduct.

Annotations
@Override
equalsback to summary
public boolean equals(Object otherList)

Overrides java.lang.Object.equals.

Implements org.eclipse.collections.api.list.primitive.ShortList.equals.

Doc from org.eclipse.collections.api.list.primitive.ShortList.equals.

Follows the same general contract as java.util.List#equals(Object).

Annotations
@Override
forEachWithIndexback to summary
public void forEachWithIndex(ShortIntProcedure procedure)

Implements org.eclipse.collections.api.ordered.primitive.OrderedShortIterable.forEachWithIndex.

Annotations
@Override
getback to summary
public short get(int index)

Implements org.eclipse.collections.api.list.primitive.ShortList.get.

Annotations
@Override
getFirstback to summary
public short getFirst()

Implements org.eclipse.collections.api.ordered.primitive.OrderedShortIterable.getFirst.

Annotations
@Override
getLastback to summary
public short getLast()

Implements org.eclipse.collections.api.ordered.primitive.ReversibleShortIterable.getLast.

Annotations
@Override
getMutableShortListback to summary
private MutableShortList getMutableShortList()
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Implements org.eclipse.collections.api.list.primitive.ShortList.hashCode.

Doc from org.eclipse.collections.api.list.primitive.ShortList.hashCode.

Follows the same general contract as java.util.List#hashCode().

Annotations
@Override
indexOfback to summary
public int indexOf(short value)

Implements org.eclipse.collections.api.ordered.primitive.OrderedShortIterable.indexOf.

Annotations
@Override
injectIntoWithIndexback to summary
public <T> T injectIntoWithIndex(T injectedValue, ObjectShortIntToObjectFunction<? super T, ? extends T> function)

Implements org.eclipse.collections.api.ordered.primitive.ReversibleShortIterable.injectIntoWithIndex.

Annotations
@Override
lastIndexOfback to summary
public int lastIndexOf(short value)

Implements org.eclipse.collections.api.list.primitive.ShortList.lastIndexOf.

Annotations
@Override
newEmptyback to summary
public MutableShortList newEmpty()

Overrides default org.eclipse.collections.api.list.primitive.MutableShortList.newEmpty, org.eclipse.collections.api.collection.primitive.MutableShortCollection.newEmpty.

Doc from org.eclipse.collections.api.list.primitive.MutableShortList.newEmpty.

Creates a new empty mutable version of the same List type.

Since
9.2.
rejectback to summary
public MutableShortList reject(ShortPredicate predicate)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableShortCollection.reject.

Implements org.eclipse.collections.api.list.primitive.MutableShortList.reject, org.eclipse.collections.api.collection.primitive.MutableShortCollection.reject.

Doc from org.eclipse.collections.api.ShortIterable.reject.

Returns a new ShortIterable with all of the elements in the ShortIterable that return false for the specified predicate.

Annotations
@Override
rejectWithIndexback to summary
public MutableShortList rejectWithIndex(ShortIntPredicate predicate)

Overrides default org.eclipse.collections.api.list.primitive.MutableShortList.rejectWithIndex.

Returns a new MutableShortList excluding all elements with corresponding indexes matching the specified predicate.

Since
11.1.
rejectWithIndexback to summary
public <R extends MutableShortCollection> R rejectWithIndex(ShortIntPredicate predicate, R target)

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedShortIterable.rejectWithIndex.

Returns a new MutableShortCollection excluding all elements with corresponding indexes matching the specified predicate.

Since
11.1.
removeAtIndexback to summary
public short removeAtIndex(int index)

Implements org.eclipse.collections.api.list.primitive.MutableShortList.removeAtIndex.

Annotations
@Override
reverseThisback to summary
public MutableShortList reverseThis()

Implements org.eclipse.collections.api.list.primitive.MutableShortList.reverseThis.

Annotations
@Override
selectback to summary
public MutableShortList select(ShortPredicate predicate)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableShortCollection.select.

Implements org.eclipse.collections.api.list.primitive.MutableShortList.select, org.eclipse.collections.api.collection.primitive.MutableShortCollection.select.

Doc from org.eclipse.collections.api.ShortIterable.select.

Returns a new ShortIterable with all of the elements in the ShortIterable that return true for the specified predicate.

Annotations
@Override
selectWithIndexback to summary
public MutableShortList selectWithIndex(ShortIntPredicate predicate)

Overrides default org.eclipse.collections.api.list.primitive.MutableShortList.selectWithIndex.

Returns a new MutableShortList including all elements with corresponding indexes matching the specified predicate.

Since
11.1.
selectWithIndexback to summary
public <R extends MutableShortCollection> R selectWithIndex(ShortIntPredicate predicate, R target)

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedShortIterable.selectWithIndex.

Returns a new MutableShortCollection including all elements with corresponding indexes matching the specified predicate.

Since
11.1.
setback to summary
public short set(int index, short element)

Implements org.eclipse.collections.api.list.primitive.MutableShortList.set.

Annotations
@Override
shuffleThisback to summary
public MutableShortList shuffleThis()

Overrides default org.eclipse.collections.api.list.primitive.MutableShortList.shuffleThis.

Doc from org.eclipse.collections.api.list.primitive.MutableShortList.shuffleThis.

Randomly permutes this list mutating its contents and returns the same list (this). Uses java.util.Random as the source of randomness.

Annotations
@Override
sortThisback to summary
public MutableShortList sortThis()

Implements org.eclipse.collections.api.list.primitive.MutableShortList.sortThis.

Doc from org.eclipse.collections.api.list.primitive.MutableShortList.sortThis.

Sorts this list mutating its contents and returns the same mutable list (this).

Annotations
@Override
subListback to summary
public MutableShortList subList(int fromIndex, int toIndex)

Implements org.eclipse.collections.api.list.primitive.MutableShortList.subList.

Annotations
@Override
toImmutableback to summary
public ImmutableShortList toImmutable()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableShortCollection.toImmutable.

Implements org.eclipse.collections.api.list.primitive.MutableShortList.toImmutable, org.eclipse.collections.api.collection.primitive.MutableShortCollection.toImmutable.

Doc from org.eclipse.collections.api.list.primitive.MutableShortList.toImmutable.

Returns an immutable copy of this list.

Annotations
@Override
toReversedback to summary
public MutableShortList toReversed()

Implements org.eclipse.collections.api.list.primitive.MutableShortList.toReversed.

Annotations
@Override
toStackback to summary
public MutableShortStack toStack()

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedShortIterable.toStack.

Doc from org.eclipse.collections.api.ordered.primitive.OrderedShortIterable.toStack.

Converts the collection to a ShortStack.

Annotations
@Override
withback to summary
public UnmodifiableShortList with(short element)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableShortCollection.with.

Implements org.eclipse.collections.api.list.primitive.MutableShortList.with, org.eclipse.collections.api.collection.primitive.MutableShortCollection.with.

Annotations
@Override
withAllback to summary
public UnmodifiableShortList withAll(ShortIterable elements)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableShortCollection.withAll.

Implements org.eclipse.collections.api.list.primitive.MutableShortList.withAll, org.eclipse.collections.api.collection.primitive.MutableShortCollection.withAll.

Annotations
@Override
withoutback to summary
public UnmodifiableShortList without(short element)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableShortCollection.without.

Implements org.eclipse.collections.api.list.primitive.MutableShortList.without, org.eclipse.collections.api.collection.primitive.MutableShortCollection.without.

Annotations
@Override
withoutAllback to summary
public UnmodifiableShortList withoutAll(ShortIterable elements)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableShortCollection.withoutAll.

Implements org.eclipse.collections.api.list.primitive.MutableShortList.withoutAll, org.eclipse.collections.api.collection.primitive.MutableShortCollection.withoutAll.

Annotations
@Override
zipback to summary
public <T> MutableList<ShortObjectPair<T>> zip(Iterable<T> iterable)

Overrides default org.eclipse.collections.api.list.primitive.MutableShortList.zip.

Doc from org.eclipse.collections.api.list.primitive.MutableShortList.zip.

Returns a MutableList formed from this MutableShortList and a ListIterable by combining corresponding elements in pairs. If one of the two Lists is longer than the other, its remaining elements are ignored.

Since
9.1.
zipShortback to summary
public MutableList<ShortShortPair> zipShort(ShortIterable iterable)

Overrides default org.eclipse.collections.api.list.primitive.MutableShortList.zipShort.

Doc from org.eclipse.collections.api.list.primitive.MutableShortList.zipShort.

Returns a MutableList formed from this MutableShortList and another ShortList by combining corresponding elements in pairs. If one of the two ShortLists is longer than the other, its remaining elements are ignored.

Since
9.1.