@NotThreadSafe public final class UnmodifiableByteList extends AbstractUnmodifiableByteCollection implements MutableByteList
Modifier and Type | Method and 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) |
<V> MutableList<V> |
collect(ByteToObjectFunction<? extends V> function) |
MutableByteList |
distinct() |
long |
dotProduct(ByteList list) |
boolean |
equals(Object otherList)
Follows the same general contract as
List.equals(Object) . |
void |
forEachWithIndex(ByteIntProcedure procedure) |
byte |
get(int index) |
byte |
getFirst() |
byte |
getLast() |
int |
hashCode()
Follows the same general contract as
List.hashCode() . |
int |
indexOf(byte value) |
<T> T |
injectIntoWithIndex(T injectedValue,
ObjectByteIntToObjectFunction<? super T,? extends T> function) |
int |
lastIndexOf(byte value) |
MutableByteList |
reject(BytePredicate predicate) |
byte |
removeAtIndex(int index) |
MutableByteList |
reverseThis() |
MutableByteList |
select(BytePredicate predicate) |
byte |
set(int index,
byte element) |
MutableByteList |
sortThis()
Sorts this list mutating its contents and returns the same mutable list (this).
|
MutableByteList |
subList(int fromIndex,
int toIndex) |
ImmutableByteList |
toImmutable()
Returns an immutable copy of this list.
|
MutableByteList |
toReversed() |
UnmodifiableByteList |
with(byte element) |
UnmodifiableByteList |
withAll(ByteIterable elements) |
UnmodifiableByteList |
without(byte element) |
UnmodifiableByteList |
withoutAll(ByteIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, byteIterator, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toString
add, addAll, addAll, byteIterator, clear, remove, removeAll, removeAll, retainAll, retainAll
allSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public byte getFirst()
getFirst
in interface OrderedByteIterable
public byte getLast()
getLast
in interface ReversibleByteIterable
public int indexOf(byte value)
indexOf
in interface OrderedByteIterable
public int lastIndexOf(byte value)
lastIndexOf
in interface ByteList
public void addAtIndex(int index, byte element)
addAtIndex
in interface MutableByteList
public boolean addAllAtIndex(int index, byte... source)
addAllAtIndex
in interface MutableByteList
public boolean addAllAtIndex(int index, ByteIterable source)
addAllAtIndex
in interface MutableByteList
public byte removeAtIndex(int index)
removeAtIndex
in interface MutableByteList
public byte set(int index, byte element)
set
in interface MutableByteList
public UnmodifiableByteList with(byte element)
with
in interface MutableByteCollection
with
in interface MutableByteList
with
in class AbstractUnmodifiableByteCollection
public UnmodifiableByteList without(byte element)
without
in interface MutableByteCollection
without
in interface MutableByteList
without
in class AbstractUnmodifiableByteCollection
public UnmodifiableByteList withAll(ByteIterable elements)
withAll
in interface MutableByteCollection
withAll
in interface MutableByteList
withAll
in class AbstractUnmodifiableByteCollection
public UnmodifiableByteList withoutAll(ByteIterable elements)
withoutAll
in interface MutableByteCollection
withoutAll
in interface MutableByteList
withoutAll
in class AbstractUnmodifiableByteCollection
public MutableByteList select(BytePredicate predicate)
select
in interface ByteIterable
select
in interface MutableByteCollection
select
in interface ByteList
select
in interface MutableByteList
select
in interface OrderedByteIterable
select
in interface ReversibleByteIterable
select
in class AbstractUnmodifiableByteCollection
public MutableByteList reject(BytePredicate predicate)
reject
in interface ByteIterable
reject
in interface MutableByteCollection
reject
in interface ByteList
reject
in interface MutableByteList
reject
in interface OrderedByteIterable
reject
in interface ReversibleByteIterable
reject
in class AbstractUnmodifiableByteCollection
public <V> MutableList<V> collect(ByteToObjectFunction<? extends V> function)
collect
in interface ByteIterable
collect
in interface MutableByteCollection
collect
in interface ByteList
collect
in interface MutableByteList
collect
in interface OrderedByteIterable
collect
in interface ReversibleByteIterable
collect
in class AbstractUnmodifiableByteCollection
public MutableByteList sortThis()
MutableByteList
sortThis
in interface MutableByteList
public int binarySearch(byte value)
binarySearch
in interface ByteList
public long dotProduct(ByteList list)
dotProduct
in interface ByteList
public boolean equals(Object otherList)
ByteList
List.equals(Object)
.public int hashCode()
ByteList
List.hashCode()
.public MutableByteList asUnmodifiable()
asUnmodifiable
in interface MutableByteCollection
asUnmodifiable
in interface MutableByteList
asUnmodifiable
in class AbstractUnmodifiableByteCollection
public MutableByteList asSynchronized()
asSynchronized
in interface MutableByteCollection
asSynchronized
in interface MutableByteList
asSynchronized
in class AbstractUnmodifiableByteCollection
public ImmutableByteList toImmutable()
MutableByteList
toImmutable
in interface MutableByteCollection
toImmutable
in interface ByteList
toImmutable
in interface MutableByteList
toImmutable
in class AbstractUnmodifiableByteCollection
public MutableByteList reverseThis()
reverseThis
in interface MutableByteList
public MutableByteList toReversed()
toReversed
in interface ByteList
toReversed
in interface MutableByteList
toReversed
in interface ReversibleByteIterable
public void forEachWithIndex(ByteIntProcedure procedure)
forEachWithIndex
in interface OrderedByteIterable
public LazyByteIterable asReversed()
asReversed
in interface ReversibleByteIterable
public <T> T injectIntoWithIndex(T injectedValue, ObjectByteIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex
in interface OrderedByteIterable
injectIntoWithIndex
in interface ReversibleByteIterable
public MutableByteList distinct()
distinct
in interface ByteList
distinct
in interface MutableByteList
distinct
in interface ReversibleByteIterable
public MutableByteList subList(int fromIndex, int toIndex)
subList
in interface ByteList
subList
in interface MutableByteList
List#subList(int fromIndex, int toIndex)}
Copyright © 2004–2016. All rights reserved.