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

public Interface MutableByteList

extends MutableByteCollection, ByteList
Imports
java.util.Comparator, .Random, org.eclipse.collections.api.block.comparator.primitive.ByteComparator, org.eclipse.collections.api.ByteIterable, org.eclipse.collections.api.block.function.primitive.ByteIntToObjectFunction, .ByteToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.ByteIntPredicate, .BytePredicate, org.eclipse.collections.api.block.procedure.primitive.ByteProcedure, org.eclipse.collections.api.collection.primitive.MutableByteCollection, org.eclipse.collections.api.list.MutableList, org.eclipse.collections.api.tuple.primitive.ByteBytePair, .ByteObjectPair

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

Method Summary

Modifier and TypeMethod and Description
public boolean
addAllAtIndex(int index, byte... source)

public boolean
addAllAtIndex(int index, ByteIterable source)

public void
addAtIndex(int index, byte element)

public MutableByteList
public MutableByteList
public MutableList<Byte>
public <V> MutableList<V>
collect(ByteToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.MutableByteCollection.collect, org.eclipse.collections.api.list.primitive.ByteList.collect.

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

public default <V> MutableList<V>
collectWithIndex(ByteIntToObjectFunction<? extends V> function)

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

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

public MutableByteList
public default MutableByteList
newEmpty()

Overrides default org.eclipse.collections.api.collection.primitive.MutableByteCollection.newEmpty.

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

public MutableByteList
reject(BytePredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableByteCollection.reject, org.eclipse.collections.api.list.primitive.ByteList.reject.

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

public default MutableByteList
rejectWithIndex(ByteIntPredicate predicate)

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

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

public byte
removeAtIndex(int index)

public MutableByteList
public MutableByteList
select(BytePredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableByteCollection.select, org.eclipse.collections.api.list.primitive.ByteList.select.

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

public default MutableByteList
selectWithIndex(ByteIntPredicate predicate)

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

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

public byte
set(int index, byte element)

public default MutableByteList
shuffleThis()

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

public default MutableByteList
shuffleThis(Random rnd)

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

public MutableByteList
sortThis()

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

public default MutableByteList
sortThis(ByteComparator comparator)

Sorts the internal data structure of this list and returns the list itself as a convenience.

public default <T> MutableByteList
sortThisBy(ByteToObjectFunction<T> function)

Sorts the internal data structure of this list based on the natural order of the key returned by function.

public default <T> MutableByteList
sortThisBy(ByteToObjectFunction<T> function, Comparator<? super T> comparator)

Sorts the internal data structure of this list based on the key returned by function using the provided comparator.

public MutableByteList
public default void
swap(int index1, int index2)

public default MutableByteList
public ImmutableByteList
public MutableByteList
public MutableByteList
public MutableByteList
public MutableByteList
public MutableByteList
public default <T> MutableList<ByteObjectPair<T>>
zip(Iterable<T> list)

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

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

public default MutableList<ByteBytePair>
zipByte(ByteIterable iterable)

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

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

Inherited from org.eclipse.collections.api.collection.primitive.MutableByteCollection:
addaddAlladdAllbyteIteratorclearremoveremoveAllremoveAllremoveIfretainAllretainAll
Inherited from org.eclipse.collections.api.list.primitive.ByteList:
binarySearchdotProductequalsforEachInBothgethashCodelastIndexOf

Method Detail

addAllAtIndexback to summary
public boolean addAllAtIndex(int index, byte... source)
addAllAtIndexback to summary
public boolean addAllAtIndex(int index, ByteIterable source)
addAtIndexback to summary
public void addAtIndex(int index, byte element)
asSynchronizedback to summary
public MutableByteList asSynchronized()

Redeclares org.eclipse.collections.api.collection.primitive.MutableByteCollection.asSynchronized.

Annotations
@Override
asUnmodifiableback to summary
public MutableByteList asUnmodifiable()

Redeclares org.eclipse.collections.api.collection.primitive.MutableByteCollection.asUnmodifiable.

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

Redeclares org.eclipse.collections.api.collection.primitive.MutableByteCollection.collect, org.eclipse.collections.api.list.primitive.ByteList.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.

collectWithIndexback to summary
public default <V> MutableList<V> collectWithIndex(ByteIntToObjectFunction<? extends V> function)

Overrides default org.eclipse.collections.api.list.primitive.ByteList.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.
distinctback to summary
public MutableByteList distinct()

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

Annotations
@Override
Since
6.0.
newEmptyback to summary
public default MutableByteList newEmpty()

Overrides default org.eclipse.collections.api.collection.primitive.MutableByteCollection.newEmpty.

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

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

Redeclares org.eclipse.collections.api.collection.primitive.MutableByteCollection.reject, org.eclipse.collections.api.list.primitive.ByteList.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 default MutableByteList rejectWithIndex(ByteIntPredicate predicate)

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

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

Annotations
@Override
Since
11.1.
removeAtIndexback to summary
public byte removeAtIndex(int index)
reverseThisback to summary
public MutableByteList reverseThis()
selectback to summary
public MutableByteList select(BytePredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableByteCollection.select, org.eclipse.collections.api.list.primitive.ByteList.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 default MutableByteList selectWithIndex(ByteIntPredicate predicate)

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

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

Annotations
@Override
Since
11.1.
setback to summary
public byte set(int index, byte element)
shuffleThisback to summary
public default MutableByteList shuffleThis()

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

shuffleThisback to summary
public default MutableByteList shuffleThis(Random rnd)

Randomly permutes this list mutating its contents and returns the same list (this). Implements the Fisher-Yates shuffle algorithm using the provided source of randomness.

sortThisback to summary
public MutableByteList sortThis()

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

sortThisback to summary
public default MutableByteList sortThis(ByteComparator comparator)

Sorts the internal data structure of this list and returns the list itself as a convenience.

sortThisByback to summary
public default <T> MutableByteList sortThisBy(ByteToObjectFunction<T> function)

Sorts the internal data structure of this list based on the natural order of the key returned by function.

sortThisByback to summary
public default <T> MutableByteList sortThisBy(ByteToObjectFunction<T> function, Comparator<? super T> comparator)

Sorts the internal data structure of this list based on the key returned by function using the provided comparator.

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

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

Annotations
@Override
swapback to summary
public default void swap(int index1, int index2)
tapback to summary
public default MutableByteList tap(ByteProcedure procedure)

Overrides default org.eclipse.collections.api.collection.primitive.MutableByteCollection.tap, org.eclipse.collections.api.list.primitive.ByteList.tap.

Annotations
@Override
Since
9.0.
toImmutableback to summary
public ImmutableByteList toImmutable()

Redeclares org.eclipse.collections.api.collection.primitive.MutableByteCollection.toImmutable, org.eclipse.collections.api.list.primitive.ByteList.toImmutable.

Returns an immutable copy of this list.

Annotations
@Override
toReversedback to summary
public MutableByteList toReversed()

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

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

Redeclares org.eclipse.collections.api.collection.primitive.MutableByteCollection.with.

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

Redeclares org.eclipse.collections.api.collection.primitive.MutableByteCollection.withAll.

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

Redeclares org.eclipse.collections.api.collection.primitive.MutableByteCollection.without.

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

Redeclares org.eclipse.collections.api.collection.primitive.MutableByteCollection.withoutAll.

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

Overrides default org.eclipse.collections.api.list.primitive.ByteList.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 default MutableList<ByteBytePair> zipByte(ByteIterable iterable)

Overrides default org.eclipse.collections.api.list.primitive.ByteList.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.