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

pack-priv final Class ImmutableShortArrayList

extends Object
implements ImmutableShortList, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.eclipse.collections.api.list.primitive.ImmutableShortList, 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.ImmutableShortCollection
Imports
java.io.IOException, .Serializable, java.util.Arrays, .Collection, .Iterator, .NoSuchElementException, org.eclipse.collections.api.ShortIterable, .LazyShortIterable, .RichIterable, org.eclipse.collections.api.bag.primitive.MutableShortBag, org.eclipse.collections.api.block.function.primitive.ShortToObjectFunction, .ObjectShortToObjectFunction, .ObjectShortIntToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.ShortPredicate, org.eclipse.collections.api.block.procedure.primitive.ShortProcedure, .ShortIntProcedure, org.eclipse.collections.api.collection.primitive.MutableShortCollection, org.eclipse.collections.api.factory.Lists, org.eclipse.collections.api.iterator.ShortIterator, org.eclipse.collections.api.list.ImmutableList, .MutableList, org.eclipse.collections.api.list.primitive.ImmutableShortList, .ShortList, .MutableShortList, org.eclipse.collections.api.set.primitive.MutableShortSet, org.eclipse.collections.api.stack.primitive.MutableShortStack, org.eclipse.collections.api.tuple.primitive.ShortShortPair, .ShortObjectPair, org.eclipse.collections.impl.bag.mutable.primitive.ShortHashBag, org.eclipse.collections.impl.factory.primitive.ShortLists, .ShortStacks, org.eclipse.collections.impl.lazy.primitive.LazyShortIterableAdapter, .ReverseShortIterable, org.eclipse.collections.impl.list.mutable.primitive.ShortArrayList, org.eclipse.collections.impl.set.mutable.primitive.ShortHashSet, org.eclipse.collections.impl.tuple.primitive.PrimitiveTuples, org.eclipse.collections.impl.utility.Iterate

ImmutableShortArrayList is the non-modifiable equivalent of ShortArrayList. It wraps a Java short array. This file was automatically generated from template file immutablePrimitiveArrayList.stg.
Since
3.2.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private final short[]
private static final long

Constructor Summary

AccessConstructor and Description
private
ImmutableShortArrayList(short[] newElements)

Method Summary

Modifier and TypeMethod and Description
public boolean
allSatisfy(ShortPredicate predicate)

Implements org.eclipse.collections.api.ShortIterable.allSatisfy.

Returns true if all of the elements in the ShortIterable return true for the specified predicate, otherwise returns false.

public boolean
anySatisfy(ShortPredicate predicate)

Implements org.eclipse.collections.api.ShortIterable.anySatisfy.

Returns true if any of the elements in the ShortIterable return true for the specified predicate, otherwise returns false.

public void
appendString(Appendable appendable)

Overrides default org.eclipse.collections.api.PrimitiveIterable.appendString.

Prints a string representation of this collection onto the given Appendable.

public void
appendString(Appendable appendable, String separator)

Overrides default org.eclipse.collections.api.PrimitiveIterable.appendString.

Prints a string representation of this collection onto the given Appendable.

public void
appendString(Appendable appendable, String start, String separator, String end)

Implements org.eclipse.collections.api.PrimitiveIterable.appendString.

Prints a string representation of this collection onto the given Appendable.

public LazyShortIterable
asLazy()

Implements org.eclipse.collections.api.ShortIterable.asLazy.

Returns a LazyShortIterable adapter wrapping the source ShortIterable.

public LazyShortIterable
public double
public int
public RichIterable<ShortIterable>
chunk(int size)

Overrides default org.eclipse.collections.api.ShortIterable.chunk.

Partitions elements in fixed size chunks.

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

Implements org.eclipse.collections.api.list.primitive.ImmutableShortList.collect.

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

public <V, R extends Collection<V>> R
collect(ShortToObjectFunction<? extends V> function, R target)

Overrides default org.eclipse.collections.api.ShortIterable.collect.

Same as collect(ShortToObjectFunction) , only the results are added to the target Collection.

public boolean
contains(short value)

Implements org.eclipse.collections.api.ShortIterable.contains.

Returns true if the value is contained in the ShortIterable, and false if it is not.

public boolean
containsAll(short... source)

Overrides default org.eclipse.collections.api.ShortIterable.containsAll.

Returns true if all of the values specified in the source array are contained in the ShortIterable, and false if they are not.

public boolean
containsAll(ShortIterable source)

Overrides default org.eclipse.collections.api.ShortIterable.containsAll.

Returns true if all of the values specified in the source ShortIterable are contained in the ShortIterable, and false if they are not.

public int
count(ShortPredicate predicate)

Implements org.eclipse.collections.api.ShortIterable.count.

Returns a count of the number of elements in the ShortIterable that return true for the specified predicate.

public short
public ImmutableShortList
public long
public void
each(ShortProcedure procedure)

Implements org.eclipse.collections.api.ShortIterable.each.

A synonym for forEach.

public boolean
public void
public short
public short
public short
public int
public int
public <T> T
injectInto(T injectedValue, ObjectShortToObjectFunction<? super T, ? extends T> function)

Implements org.eclipse.collections.api.ShortIterable.injectInto.

public <T> T
public boolean
isEmpty()

Overrides default org.eclipse.collections.api.PrimitiveIterable.isEmpty.

Returns true if this iterable has zero items.

public int
public String
makeString()

Overrides default org.eclipse.collections.api.PrimitiveIterable.makeString.

Returns a string representation of this collection by delegating to makeString(String) and defaulting the separator parameter to the characters ", " (comma and space).

public String
makeString(String separator)

Overrides default org.eclipse.collections.api.PrimitiveIterable.makeString.

Returns a string representation of this collection by delegating to makeString(String, String, String) and defaulting the start and end parameters to "" (the empty String).

public String
makeString(String start, String separator, String end)

Overrides default org.eclipse.collections.api.PrimitiveIterable.makeString.

Returns a string representation of this collection with the elements separated by the specified separator and enclosed between the start and end strings.

public short
public short
public double
public short
public short
public static ImmutableShortArrayList
public static ImmutableShortArrayList
newListWith(short... elements)

public ImmutableShortList
public ImmutableShortList
public ImmutableShortList
public ImmutableShortList
public boolean
notEmpty()

Overrides default org.eclipse.collections.api.PrimitiveIterable.notEmpty.

The English equivalent of !this.isEmpty()

public ImmutableShortList
reject(ShortPredicate predicate)

Implements org.eclipse.collections.api.list.primitive.ImmutableShortList.reject.

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

public <R extends MutableShortCollection> R
reject(ShortPredicate predicate, R target)

Overrides default org.eclipse.collections.api.ShortIterable.reject.

Same as reject(ShortPredicate) , only the results are added to the target MutableShortCollection.

public ImmutableShortList
select(ShortPredicate predicate)

Implements org.eclipse.collections.api.list.primitive.ImmutableShortList.select.

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

public <R extends MutableShortCollection> R
select(ShortPredicate predicate, R target)

Overrides default org.eclipse.collections.api.ShortIterable.select.

Same as select(ShortPredicate) , only the results are added to the target MutableShortCollection.

public ShortIterator
shortIterator()

Implements org.eclipse.collections.api.ShortIterable.shortIterator.

Returns a primitive iterator that can be used to iterate over the ShortIterable in an imperative style.

public int
size()

Implements org.eclipse.collections.api.PrimitiveIterable.size.

Returns the number of items in this iterable.

public ImmutableShortList
public long
public short[]
toArray()

Implements org.eclipse.collections.api.ShortIterable.toArray.

Converts the ShortIterable to a primitive short array.

public short[]
toArray(short[] target)

Overrides default org.eclipse.collections.api.ShortIterable.toArray.

Converts the ShortIterable to a primitive short array.

public MutableShortBag
toBag()

Implements org.eclipse.collections.api.ShortIterable.toBag.

Converts the ShortIterable to a new MutableShortBag.

public ImmutableShortList
toImmutable()

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

Returns an immutable copy of this list.

public MutableShortList
toList()

Implements org.eclipse.collections.api.ShortIterable.toList.

Converts the ShortIterable to a new MutableShortList.

public ImmutableShortArrayList
public MutableShortSet
toSet()

Implements org.eclipse.collections.api.ShortIterable.toSet.

Converts the ShortIterable to a new MutableShortSet.

public short[]
public MutableShortList
public MutableShortStack
toStack()

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

Converts the collection to a ShortStack.

public String
toString()

Overrides java.lang.Object.toString.

Implements org.eclipse.collections.api.PrimitiveIterable.toString.

Returns a string with the elements of this iterable separated by commas with spaces and enclosed in square brackets.

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

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

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

public ImmutableList<ShortShortPair>
zipShort(ShortIterable iterable)

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

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

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait