Top Description Methods
org.eclipse.collections.api.list.primitive

public Interface ImmutableShortList

extends ImmutableShortCollection, ShortList
Imports
org.eclipse.collections.api.ShortIterable, org.eclipse.collections.api.block.function.primitive.ShortIntToObjectFunction, .ShortToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.ShortIntPredicate, .ShortPredicate, org.eclipse.collections.api.block.procedure.primitive.ShortProcedure, org.eclipse.collections.api.collection.primitive.ImmutableShortCollection, org.eclipse.collections.api.list.ImmutableList, org.eclipse.collections.api.tuple.primitive.ShortShortPair, .ShortObjectPair

This file was automatically generated from template file immutablePrimitiveList.stg.
Since
3.0.

Method Summary

Modifier and TypeMethod and Description
public <V> ImmutableList<V>
collect(ShortToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableShortCollection.collect, org.eclipse.collections.api.list.primitive.ShortList.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection.

public default <V> ImmutableList<V>
collectWithIndex(ShortIntToObjectFunction<? extends V> function)

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

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

public ImmutableShortList
public ImmutableShortList
public ImmutableShortList
public ImmutableShortList
public ImmutableShortList
public ImmutableShortList
reject(ShortPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableShortCollection.reject, org.eclipse.collections.api.list.primitive.ShortList.reject.

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

public default ImmutableShortList
rejectWithIndex(ShortIntPredicate predicate)

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

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

public ImmutableShortList
select(ShortPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableShortCollection.select, org.eclipse.collections.api.list.primitive.ShortList.select.

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

public default ImmutableShortList
selectWithIndex(ShortIntPredicate predicate)

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

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

public ImmutableShortList
public default ImmutableShortList
public ImmutableShortList
public default <T> ImmutableList<ShortObjectPair<T>>
zip(Iterable<T> iterable)

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

Returns an ImmutableList formed from this ImmutableShortList and a ListIterable by combining corresponding elements in pairs.

public default ImmutableList<ShortShortPair>
zipShort(ShortIterable iterable)

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

Returns an ImmutableList formed from this ImmutableShortList and another ShortList by combining corresponding elements in pairs.

Inherited from org.eclipse.collections.api.list.primitive.ShortList:
binarySearchdotProductequalsforEachInBothgethashCodelastIndexOftoImmutable

Method Detail

collectback to summary
public <V> ImmutableList<V> collect(ShortToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableShortCollection.collect, org.eclipse.collections.api.list.primitive.ShortList.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 default <V> ImmutableList<V> collectWithIndex(ShortIntToObjectFunction<? extends V> function)

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

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

Annotations
@Override
Since
9.1.
distinctback to summary
public ImmutableShortList distinct()

Redeclares org.eclipse.collections.api.list.primitive.ShortList.distinct.

Annotations
@Override
Since
6.0.
newWithback to summary
public ImmutableShortList newWith(short element)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableShortCollection.newWith.

Annotations
@Override
newWithAllback to summary
public ImmutableShortList newWithAll(ShortIterable elements)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableShortCollection.newWithAll.

Annotations
@Override
newWithoutback to summary
public ImmutableShortList newWithout(short element)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableShortCollection.newWithout.

Annotations
@Override
newWithoutAllback to summary
public ImmutableShortList newWithoutAll(ShortIterable elements)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableShortCollection.newWithoutAll.

Annotations
@Override
rejectback to summary
public ImmutableShortList reject(ShortPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableShortCollection.reject, org.eclipse.collections.api.list.primitive.ShortList.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 default ImmutableShortList rejectWithIndex(ShortIntPredicate predicate)

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

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

Annotations
@Override
Since
11.1.
selectback to summary
public ImmutableShortList select(ShortPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableShortCollection.select, org.eclipse.collections.api.list.primitive.ShortList.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 default ImmutableShortList selectWithIndex(ShortIntPredicate predicate)

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

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

Annotations
@Override
Since
11.1.
subListback to summary
public ImmutableShortList subList(int fromIndex, int toIndex)

Redeclares org.eclipse.collections.api.list.primitive.ShortList.subList.

Annotations
@Override
tapback to summary
public default ImmutableShortList tap(ShortProcedure procedure)

Overrides default org.eclipse.collections.api.collection.primitive.ImmutableShortCollection.tap, org.eclipse.collections.api.list.primitive.ShortList.tap.

Annotations
@Override
Since
9.0.
toReversedback to summary
public ImmutableShortList toReversed()

Redeclares org.eclipse.collections.api.list.primitive.ShortList.toReversed.

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

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

Returns an ImmutableList formed from this ImmutableShortList 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 default ImmutableList<ShortShortPair> zipShort(ShortIterable iterable)

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

Returns an ImmutableList formed from this ImmutableShortList 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.