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

pack-priv final Class ImmutableByteArrayList

extends Object
implements ImmutableByteList, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.eclipse.collections.api.list.primitive.ImmutableByteList, org.eclipse.collections.api.list.primitive.ByteList, org.eclipse.collections.api.ordered.primitive.ReversibleByteIterable, org.eclipse.collections.api.ordered.primitive.OrderedByteIterable, org.eclipse.collections.api.ByteIterable, org.eclipse.collections.api.PrimitiveIterable, org.eclipse.collections.api.collection.primitive.ImmutableByteCollection
Imports
java.io.IOException, .Serializable, java.util.Arrays, .Collection, .Iterator, .NoSuchElementException, org.eclipse.collections.api.ByteIterable, .LazyByteIterable, .RichIterable, org.eclipse.collections.api.bag.primitive.MutableByteBag, org.eclipse.collections.api.block.function.primitive.ByteToObjectFunction, .ObjectByteToObjectFunction, .ObjectByteIntToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.BytePredicate, org.eclipse.collections.api.block.procedure.primitive.ByteProcedure, .ByteIntProcedure, org.eclipse.collections.api.collection.primitive.MutableByteCollection, org.eclipse.collections.api.factory.Lists, org.eclipse.collections.api.iterator.ByteIterator, org.eclipse.collections.api.list.ImmutableList, .MutableList, org.eclipse.collections.api.list.primitive.ImmutableByteList, .ByteList, .MutableByteList, org.eclipse.collections.api.set.primitive.MutableByteSet, org.eclipse.collections.api.stack.primitive.MutableByteStack, org.eclipse.collections.api.tuple.primitive.ByteBytePair, .ByteObjectPair, org.eclipse.collections.impl.bag.mutable.primitive.ByteHashBag, org.eclipse.collections.impl.factory.primitive.ByteLists, .ByteStacks, org.eclipse.collections.impl.lazy.primitive.LazyByteIterableAdapter, .ReverseByteIterable, org.eclipse.collections.impl.list.mutable.primitive.ByteArrayList, org.eclipse.collections.impl.set.mutable.primitive.ByteHashSet, org.eclipse.collections.impl.tuple.primitive.PrimitiveTuples, org.eclipse.collections.impl.utility.Iterate

ImmutableByteArrayList is the non-modifiable equivalent of ByteArrayList. It wraps a Java byte 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 byte[]
private static final long

Constructor Summary

AccessConstructor and Description
private
ImmutableByteArrayList(byte[] newElements)

Method Summary

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

Implements org.eclipse.collections.api.ByteIterable.allSatisfy.

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

public boolean
anySatisfy(BytePredicate predicate)

Implements org.eclipse.collections.api.ByteIterable.anySatisfy.

Returns true if any of the elements in the ByteIterable 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 LazyByteIterable
asLazy()

Implements org.eclipse.collections.api.ByteIterable.asLazy.

Returns a LazyByteIterable adapter wrapping the source ByteIterable.

public LazyByteIterable
public double
public int
public ByteIterator
byteIterator()

Implements org.eclipse.collections.api.ByteIterable.byteIterator.

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

public RichIterable<ByteIterable>
chunk(int size)

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

Partitions elements in fixed size chunks.

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

Implements org.eclipse.collections.api.list.primitive.ImmutableByteList.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(ByteToObjectFunction<? extends V> function, R target)

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

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

public boolean
contains(byte value)

Implements org.eclipse.collections.api.ByteIterable.contains.

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

public boolean
containsAll(byte... source)

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

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

public boolean
containsAll(ByteIterable source)

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

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

public int
count(BytePredicate predicate)

Implements org.eclipse.collections.api.ByteIterable.count.

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

public byte
public ImmutableByteList
public long
public void
each(ByteProcedure procedure)

Implements org.eclipse.collections.api.ByteIterable.each.

A synonym for forEach.

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

Implements org.eclipse.collections.api.ByteIterable.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 byte
public byte
public double
public byte
public byte
public static ImmutableByteArrayList
public static ImmutableByteArrayList
newListWith(byte... elements)

public ImmutableByteList
public ImmutableByteList
public ImmutableByteList
public ImmutableByteList
public boolean
notEmpty()

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

The English equivalent of !this.isEmpty()

public ImmutableByteList
reject(BytePredicate predicate)

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

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

public <R extends MutableByteCollection> R
reject(BytePredicate predicate, R target)

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

Same as reject(BytePredicate) , only the results are added to the target MutableByteCollection.

public ImmutableByteList
select(BytePredicate predicate)

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

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

public <R extends MutableByteCollection> R
select(BytePredicate predicate, R target)

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

Same as select(BytePredicate) , only the results are added to the target MutableByteCollection.

public int
size()

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

Returns the number of items in this iterable.

public ImmutableByteList
public long
public byte[]
toArray()

Implements org.eclipse.collections.api.ByteIterable.toArray.

Converts the ByteIterable to a primitive byte array.

public byte[]
toArray(byte[] target)

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

Converts the ByteIterable to a primitive byte array.

public MutableByteBag
toBag()

Implements org.eclipse.collections.api.ByteIterable.toBag.

Converts the ByteIterable to a new MutableByteBag.

public ImmutableByteList
toImmutable()

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

Returns an immutable copy of this list.

public MutableByteList
toList()

Implements org.eclipse.collections.api.ByteIterable.toList.

Converts the ByteIterable to a new MutableByteList.

public ImmutableByteArrayList
public MutableByteSet
toSet()

Implements org.eclipse.collections.api.ByteIterable.toSet.

Converts the ByteIterable to a new MutableByteSet.

public byte[]
public MutableByteList
public MutableByteStack
toStack()

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

Converts the collection to a ByteStack.

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<ByteObjectPair<T>>
zip(Iterable<T> iterable)

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

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

public ImmutableList<ByteBytePair>
zipByte(ByteIterable iterable)

Overrides default org.eclipse.collections.api.list.primitive.ImmutableByteList.zipByte.

Returns an ImmutableList formed from this ImmutableByteList and another ByteList by combining corresponding elements in pairs.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait