Class UnmodifiableByteList
- java.lang.Object
-
- org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableByteCollection
-
- org.eclipse.collections.impl.list.mutable.primitive.UnmodifiableByteList
-
- All Implemented Interfaces:
Serializable
,ByteIterable
,MutableByteCollection
,ByteList
,MutableByteList
,OrderedByteIterable
,ReversibleByteIterable
,PrimitiveIterable
public class UnmodifiableByteList extends AbstractUnmodifiableByteCollection implements MutableByteList
This file was automatically generated from template file unmodifiablePrimitiveList.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableByteList(MutableByteList list)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addAllAtIndex(int index, byte... source)
boolean
addAllAtIndex(int index, ByteIterable source)
void
addAtIndex(int index, byte element)
LazyByteIterable
asReversed()
MutableByteList
asSynchronized()
MutableByteList
asUnmodifiable()
int
binarySearch(byte value)
MutableList<Byte>
boxed()
<V> MutableList<V>
collect(ByteToObjectFunction<? extends V> function)
<V> MutableList<V>
collectWithIndex(ByteIntToObjectFunction<? extends V> function)
Returns a new MutableList using results obtained by applying the specified function to each element and its corresponding index.<V,R extends Collection<V>>
RcollectWithIndex(ByteIntToObjectFunction<? extends V> function, R target)
Adds elements to the target Collection using results obtained by applying the specified function to each element and its corresponding index.MutableByteList
distinct()
long
dotProduct(ByteList list)
boolean
equals(Object otherList)
void
forEachWithIndex(ByteIntProcedure procedure)
byte
get(int index)
byte
getFirst()
byte
getLast()
int
hashCode()
int
indexOf(byte value)
<T> T
injectIntoWithIndex(T injectedValue, ObjectByteIntToObjectFunction<? super T,? extends T> function)
int
lastIndexOf(byte value)
MutableByteList
newEmpty()
MutableByteList
reject(BytePredicate predicate)
MutableByteList
rejectWithIndex(ByteIntPredicate predicate)
Returns a new MutableByteList excluding all elements with corresponding indexes matching the specified predicate.<R extends MutableByteCollection>
RrejectWithIndex(ByteIntPredicate predicate, R target)
Returns a new MutableByteCollection excluding all elements with corresponding indexes matching the specified predicate.byte
removeAtIndex(int index)
MutableByteList
reverseThis()
MutableByteList
select(BytePredicate predicate)
MutableByteList
selectWithIndex(ByteIntPredicate predicate)
Returns a new MutableByteList including all elements with corresponding indexes matching the specified predicate.<R extends MutableByteCollection>
RselectWithIndex(ByteIntPredicate predicate, R target)
Returns a new MutableByteCollection including all elements with corresponding indexes matching the specified predicate.byte
set(int index, byte element)
MutableByteList
shuffleThis()
MutableByteList
sortThis()
MutableByteList
subList(int fromIndex, int toIndex)
ImmutableByteList
toImmutable()
MutableByteList
toReversed()
UnmodifiableByteList
with(byte element)
UnmodifiableByteList
withAll(ByteIterable elements)
UnmodifiableByteList
without(byte element)
UnmodifiableByteList
withoutAll(ByteIterable elements)
<T> MutableList<ByteObjectPair<T>>
zip(Iterable<T> iterable)
MutableList<ByteBytePair>
zipByte(ByteIterable iterable)
-
Methods inherited from class org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableByteCollection
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, byteIterator, chunk, clear, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toString
-
Methods inherited from interface org.eclipse.collections.api.ByteIterable
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.list.primitive.ByteList
forEachInBoth
-
Methods inherited from interface org.eclipse.collections.api.collection.primitive.MutableByteCollection
add, addAll, addAll, byteIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAll
-
Methods inherited from interface org.eclipse.collections.api.list.primitive.MutableByteList
shuffleThis, sortThis, sortThisBy, sortThisBy, swap, tap
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
-
-
-
Constructor Detail
-
UnmodifiableByteList
public UnmodifiableByteList(MutableByteList list)
-
-
Method Detail
-
getFirst
public byte getFirst()
- Specified by:
getFirst
in interfaceOrderedByteIterable
-
getLast
public byte getLast()
- Specified by:
getLast
in interfaceReversibleByteIterable
-
indexOf
public int indexOf(byte value)
- Specified by:
indexOf
in interfaceOrderedByteIterable
-
lastIndexOf
public int lastIndexOf(byte value)
- Specified by:
lastIndexOf
in interfaceByteList
-
boxed
public MutableList<Byte> boxed()
- Specified by:
boxed
in interfaceMutableByteList
-
addAtIndex
public void addAtIndex(int index, byte element)
- Specified by:
addAtIndex
in interfaceMutableByteList
-
addAllAtIndex
public boolean addAllAtIndex(int index, byte... source)
- Specified by:
addAllAtIndex
in interfaceMutableByteList
-
addAllAtIndex
public boolean addAllAtIndex(int index, ByteIterable source)
- Specified by:
addAllAtIndex
in interfaceMutableByteList
-
removeAtIndex
public byte removeAtIndex(int index)
- Specified by:
removeAtIndex
in interfaceMutableByteList
-
set
public byte set(int index, byte element)
- Specified by:
set
in interfaceMutableByteList
-
with
public UnmodifiableByteList with(byte element)
- Specified by:
with
in interfaceMutableByteCollection
- Specified by:
with
in interfaceMutableByteList
- Overrides:
with
in classAbstractUnmodifiableByteCollection
-
without
public UnmodifiableByteList without(byte element)
- Specified by:
without
in interfaceMutableByteCollection
- Specified by:
without
in interfaceMutableByteList
- Overrides:
without
in classAbstractUnmodifiableByteCollection
-
withAll
public UnmodifiableByteList withAll(ByteIterable elements)
- Specified by:
withAll
in interfaceMutableByteCollection
- Specified by:
withAll
in interfaceMutableByteList
- Overrides:
withAll
in classAbstractUnmodifiableByteCollection
-
withoutAll
public UnmodifiableByteList withoutAll(ByteIterable elements)
- Specified by:
withoutAll
in interfaceMutableByteCollection
- Specified by:
withoutAll
in interfaceMutableByteList
- Overrides:
withoutAll
in classAbstractUnmodifiableByteCollection
-
select
public MutableByteList select(BytePredicate predicate)
- Specified by:
select
in interfaceByteIterable
- Specified by:
select
in interfaceByteList
- Specified by:
select
in interfaceMutableByteCollection
- Specified by:
select
in interfaceMutableByteList
- Specified by:
select
in interfaceOrderedByteIterable
- Specified by:
select
in interfaceReversibleByteIterable
- Overrides:
select
in classAbstractUnmodifiableByteCollection
-
reject
public MutableByteList reject(BytePredicate predicate)
- Specified by:
reject
in interfaceByteIterable
- Specified by:
reject
in interfaceByteList
- Specified by:
reject
in interfaceMutableByteCollection
- Specified by:
reject
in interfaceMutableByteList
- Specified by:
reject
in interfaceOrderedByteIterable
- Specified by:
reject
in interfaceReversibleByteIterable
- Overrides:
reject
in classAbstractUnmodifiableByteCollection
-
collect
public <V> MutableList<V> collect(ByteToObjectFunction<? extends V> function)
- Specified by:
collect
in interfaceByteIterable
- Specified by:
collect
in interfaceByteList
- Specified by:
collect
in interfaceMutableByteCollection
- Specified by:
collect
in interfaceMutableByteList
- Specified by:
collect
in interfaceOrderedByteIterable
- Specified by:
collect
in interfaceReversibleByteIterable
- Overrides:
collect
in classAbstractUnmodifiableByteCollection
-
sortThis
public MutableByteList sortThis()
- Specified by:
sortThis
in interfaceMutableByteList
-
shuffleThis
public MutableByteList shuffleThis()
- Specified by:
shuffleThis
in interfaceMutableByteList
-
binarySearch
public int binarySearch(byte value)
- Specified by:
binarySearch
in interfaceByteList
-
dotProduct
public long dotProduct(ByteList list)
- Specified by:
dotProduct
in interfaceByteList
-
equals
public boolean equals(Object otherList)
-
hashCode
public int hashCode()
-
asUnmodifiable
public MutableByteList asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableByteCollection
- Specified by:
asUnmodifiable
in interfaceMutableByteList
- Overrides:
asUnmodifiable
in classAbstractUnmodifiableByteCollection
-
asSynchronized
public MutableByteList asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableByteCollection
- Specified by:
asSynchronized
in interfaceMutableByteList
- Overrides:
asSynchronized
in classAbstractUnmodifiableByteCollection
-
toImmutable
public ImmutableByteList toImmutable()
- Specified by:
toImmutable
in interfaceByteList
- Specified by:
toImmutable
in interfaceMutableByteCollection
- Specified by:
toImmutable
in interfaceMutableByteList
- Overrides:
toImmutable
in classAbstractUnmodifiableByteCollection
-
newEmpty
public MutableByteList newEmpty()
- Specified by:
newEmpty
in interfaceMutableByteCollection
- Specified by:
newEmpty
in interfaceMutableByteList
- Since:
- 9.2.
-
reverseThis
public MutableByteList reverseThis()
- Specified by:
reverseThis
in interfaceMutableByteList
-
toReversed
public MutableByteList toReversed()
- Specified by:
toReversed
in interfaceByteList
- Specified by:
toReversed
in interfaceMutableByteList
- Specified by:
toReversed
in interfaceReversibleByteIterable
-
forEachWithIndex
public void forEachWithIndex(ByteIntProcedure procedure)
- Specified by:
forEachWithIndex
in interfaceOrderedByteIterable
-
asReversed
public LazyByteIterable asReversed()
- Specified by:
asReversed
in interfaceReversibleByteIterable
-
injectIntoWithIndex
public <T> T injectIntoWithIndex(T injectedValue, ObjectByteIntToObjectFunction<? super T,? extends T> function)
- Specified by:
injectIntoWithIndex
in interfaceOrderedByteIterable
- Specified by:
injectIntoWithIndex
in interfaceReversibleByteIterable
-
distinct
public MutableByteList distinct()
- Specified by:
distinct
in interfaceByteList
- Specified by:
distinct
in interfaceMutableByteList
- Specified by:
distinct
in interfaceReversibleByteIterable
- Since:
- 6.0.
-
subList
public MutableByteList subList(int fromIndex, int toIndex)
- Specified by:
subList
in interfaceByteList
- Specified by:
subList
in interfaceMutableByteList
-
zipByte
public MutableList<ByteBytePair> zipByte(ByteIterable iterable)
- Specified by:
zipByte
in interfaceByteList
- Specified by:
zipByte
in interfaceMutableByteList
- Since:
- 9.1.
-
zip
public <T> MutableList<ByteObjectPair<T>> zip(Iterable<T> iterable)
- Specified by:
zip
in interfaceByteList
- Specified by:
zip
in interfaceMutableByteList
- Since:
- 9.1.
-
selectWithIndex
public MutableByteList selectWithIndex(ByteIntPredicate predicate)
Returns a new MutableByteList including all elements with corresponding indexes matching the specified predicate.- Specified by:
selectWithIndex
in interfaceByteList
- Specified by:
selectWithIndex
in interfaceMutableByteList
- Specified by:
selectWithIndex
in interfaceOrderedByteIterable
- Specified by:
selectWithIndex
in interfaceReversibleByteIterable
- Since:
- 11.1.
-
selectWithIndex
public <R extends MutableByteCollection> R selectWithIndex(ByteIntPredicate predicate, R target)
Returns a new MutableByteCollection including all elements with corresponding indexes matching the specified predicate.- Specified by:
selectWithIndex
in interfaceOrderedByteIterable
- Since:
- 11.1.
-
rejectWithIndex
public MutableByteList rejectWithIndex(ByteIntPredicate predicate)
Returns a new MutableByteList excluding all elements with corresponding indexes matching the specified predicate.- Specified by:
rejectWithIndex
in interfaceByteList
- Specified by:
rejectWithIndex
in interfaceMutableByteList
- Specified by:
rejectWithIndex
in interfaceOrderedByteIterable
- Specified by:
rejectWithIndex
in interfaceReversibleByteIterable
- Since:
- 11.1.
-
rejectWithIndex
public <R extends MutableByteCollection> R rejectWithIndex(ByteIntPredicate predicate, R target)
Returns a new MutableByteCollection excluding all elements with corresponding indexes matching the specified predicate.- Specified by:
rejectWithIndex
in interfaceOrderedByteIterable
- Since:
- 11.1.
-
collectWithIndex
public <V> MutableList<V> collectWithIndex(ByteIntToObjectFunction<? extends V> function)
Returns a new MutableList using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndex
in interfaceByteList
- Specified by:
collectWithIndex
in interfaceMutableByteList
- Specified by:
collectWithIndex
in interfaceOrderedByteIterable
- Specified by:
collectWithIndex
in interfaceReversibleByteIterable
- Since:
- 9.1.
-
collectWithIndex
public <V,R extends Collection<V>> R collectWithIndex(ByteIntToObjectFunction<? extends V> function, R target)
Adds elements to the target Collection using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndex
in interfaceOrderedByteIterable
- Since:
- 9.1.
-
-