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

public Class UnmodifiableByteList

extends AbstractUnmodifiableByteCollection
implements MutableByteList
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.list.primitive.MutableByteList, 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.MutableByteCollection
Imports
java.util.Collection, org.eclipse.collections.api.ByteIterable, .LazyByteIterable, org.eclipse.collections.api.block.function.primitive.ByteIntToObjectFunction, .ByteToObjectFunction, .ObjectByteIntToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.ByteIntPredicate, .BytePredicate, org.eclipse.collections.api.block.procedure.primitive.ByteIntProcedure, org.eclipse.collections.api.collection.primitive.MutableByteCollection, org.eclipse.collections.api.list.MutableList, org.eclipse.collections.api.tuple.primitive.ByteBytePair, .ByteObjectPair, org.eclipse.collections.api.stack.primitive.MutableByteStack, org.eclipse.collections.api.list.primitive.ByteList, .ImmutableByteList, .MutableByteList, org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableByteCollection, org.eclipse.collections.impl.factory.primitive.ByteLists, .ByteStacks, org.eclipse.collections.impl.lazy.primitive.ReverseByteIterable

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 LazyByteIterable
public MutableByteList
public MutableByteList
public int
public MutableList<Byte>
public <V> MutableList<V>
public <V> MutableList<V>
collectWithIndex(ByteIntToObjectFunction<? extends V> function)

Overrides default org.eclipse.collections.api.list.primitive.MutableByteList.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(ByteIntToObjectFunction<? extends V> function, R target)

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

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

public MutableByteList
public long
public boolean
public void
public byte
public byte
public byte
private MutableByteList
public int
public int
public <T> T
public int
public MutableByteList
public MutableByteList
public MutableByteList
rejectWithIndex(ByteIntPredicate predicate)

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

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

public <R extends MutableByteCollection> R
rejectWithIndex(ByteIntPredicate predicate, R target)

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

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

public byte
public MutableByteList
public MutableByteList
public MutableByteList
selectWithIndex(ByteIntPredicate predicate)

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

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

public <R extends MutableByteCollection> R
selectWithIndex(ByteIntPredicate predicate, R target)

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

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

public byte
public MutableByteList
shuffleThis()

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

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

public MutableByteList
sortThis()

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

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

public MutableByteList
public ImmutableByteList
public MutableByteList
public MutableByteStack
toStack()

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

Converts the collection to a ByteStack.

public UnmodifiableByteList
public UnmodifiableByteList
public UnmodifiableByteList
public UnmodifiableByteList
public <T> MutableList<ByteObjectPair<T>>
zip(Iterable<T> iterable)

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

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

public MutableList<ByteBytePair>
zipByte(ByteIterable iterable)

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

Returns a MutableList formed from this MutableByteList and another ByteList by combining corresponding elements in pairs.

Inherited from org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableByteCollection:
addaddAlladdAllallSatisfyanySatisfyappendStringappendStringappendStringasLazyaveragebyteIteratorchunkclearcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNoneeachgetByteCollectioninjectIntoisEmptymakeStringmakeStringmakeStringmaxmaxIfEmptymedianminminIfEmptynoneSatisfynotEmptyreducereduceIfEmptyremoveremoveAllremoveAllremoveIfretainAllretainAllsizesumtoArraytoArraytoBagtoListtoSettoSortedArraytoSortedListtoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

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

Constructor Detail

UnmodifiableByteListback to summary
public UnmodifiableByteList(MutableByteList list)

Method Detail

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

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

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

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

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

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

Annotations
@Override
asReversedback to summary
public LazyByteIterable asReversed()

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

Annotations
@Override
asSynchronizedback to summary
public MutableByteList asSynchronized()

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

Implements org.eclipse.collections.api.list.primitive.MutableByteList.asSynchronized, org.eclipse.collections.api.collection.primitive.MutableByteCollection.asSynchronized.

Annotations
@Override
asUnmodifiableback to summary
public MutableByteList asUnmodifiable()

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

Implements org.eclipse.collections.api.list.primitive.MutableByteList.asUnmodifiable, org.eclipse.collections.api.collection.primitive.MutableByteCollection.asUnmodifiable.

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

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

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

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

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

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

Implements org.eclipse.collections.api.list.primitive.MutableByteList.collect, org.eclipse.collections.api.collection.primitive.MutableByteCollection.collect.

Doc from org.eclipse.collections.api.ByteIterable.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(ByteIntToObjectFunction<? extends V> function)

Overrides default org.eclipse.collections.api.list.primitive.MutableByteList.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(ByteIntToObjectFunction<? extends V> function, R target)

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedByteIterable.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 MutableByteList distinct()

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

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

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

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

Overrides java.lang.Object.equals.

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

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

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

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

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

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

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

Annotations
@Override
getFirstback to summary
public byte getFirst()

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

Annotations
@Override
getLastback to summary
public byte getLast()

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

Annotations
@Override
getMutableByteListback to summary
private MutableByteList getMutableByteList()
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

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

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

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

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

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

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

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

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

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

Annotations
@Override
newEmptyback to summary
public MutableByteList newEmpty()

Overrides default org.eclipse.collections.api.list.primitive.MutableByteList.newEmpty, org.eclipse.collections.api.collection.primitive.MutableByteCollection.newEmpty.

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

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

Since
9.2.
rejectback to summary
public MutableByteList reject(BytePredicate predicate)

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

Implements org.eclipse.collections.api.list.primitive.MutableByteList.reject, org.eclipse.collections.api.collection.primitive.MutableByteCollection.reject.

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

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

Annotations
@Override
rejectWithIndexback to summary
public MutableByteList rejectWithIndex(ByteIntPredicate predicate)

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

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

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

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

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

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

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

Annotations
@Override
reverseThisback to summary
public MutableByteList reverseThis()

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

Annotations
@Override
selectback to summary
public MutableByteList select(BytePredicate predicate)

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

Implements org.eclipse.collections.api.list.primitive.MutableByteList.select, org.eclipse.collections.api.collection.primitive.MutableByteCollection.select.

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

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

Annotations
@Override
selectWithIndexback to summary
public MutableByteList selectWithIndex(ByteIntPredicate predicate)

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

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

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

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

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

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

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

Annotations
@Override
shuffleThisback to summary
public MutableByteList shuffleThis()

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

Doc from org.eclipse.collections.api.list.primitive.MutableByteList.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 MutableByteList sortThis()

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

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

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

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

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

Annotations
@Override
toImmutableback to summary
public ImmutableByteList toImmutable()

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

Implements org.eclipse.collections.api.list.primitive.MutableByteList.toImmutable, org.eclipse.collections.api.collection.primitive.MutableByteCollection.toImmutable.

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

Returns an immutable copy of this list.

Annotations
@Override
toReversedback to summary
public MutableByteList toReversed()

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

Annotations
@Override
toStackback to summary
public MutableByteStack toStack()

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

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

Converts the collection to a ByteStack.

Annotations
@Override
withback to summary
public UnmodifiableByteList with(byte element)

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

Implements org.eclipse.collections.api.list.primitive.MutableByteList.with, org.eclipse.collections.api.collection.primitive.MutableByteCollection.with.

Annotations
@Override
withAllback to summary
public UnmodifiableByteList withAll(ByteIterable elements)

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

Implements org.eclipse.collections.api.list.primitive.MutableByteList.withAll, org.eclipse.collections.api.collection.primitive.MutableByteCollection.withAll.

Annotations
@Override
withoutback to summary
public UnmodifiableByteList without(byte element)

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

Implements org.eclipse.collections.api.list.primitive.MutableByteList.without, org.eclipse.collections.api.collection.primitive.MutableByteCollection.without.

Annotations
@Override
withoutAllback to summary
public UnmodifiableByteList withoutAll(ByteIterable elements)

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

Implements org.eclipse.collections.api.list.primitive.MutableByteList.withoutAll, org.eclipse.collections.api.collection.primitive.MutableByteCollection.withoutAll.

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

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

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

Returns a MutableList formed from this MutableByteList 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.
zipByteback to summary
public MutableList<ByteBytePair> zipByte(ByteIterable iterable)

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

Doc from org.eclipse.collections.api.list.primitive.MutableByteList.zipByte.

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

Since
9.1.