@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 |
asLazy() |
LazyByteIterable |
asReversed() |
MutableByteList |
asSynchronized() |
MutableByteList |
asUnmodifiable() |
<V> MutableList<V> |
collect(ByteToObjectFunction<? extends V> function) |
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 |
injectInto(T injectedValue,
ObjectByteToObjectFunction<? super T,? extends T> function) |
<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, average, byteIterator, clear, contains, containsAll, containsAll, count, detectIfNone, forEach, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringadd, addAll, addAll, clear, remove, removeAll, removeAll, retainAll, retainAllallSatisfy, anySatisfy, average, byteIterator, contains, containsAll, containsAll, count, detectIfNone, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic byte getFirst()
getFirst in interface ReversibleByteIterablepublic byte getLast()
getLast in interface ReversibleByteIterablepublic int indexOf(byte value)
indexOf in interface ReversibleByteIterablepublic int lastIndexOf(byte value)
lastIndexOf in interface ByteListpublic void addAtIndex(int index,
byte element)
addAtIndex in interface MutableByteListpublic boolean addAllAtIndex(int index,
byte... source)
addAllAtIndex in interface MutableByteListpublic boolean addAllAtIndex(int index,
ByteIterable source)
addAllAtIndex in interface MutableByteListpublic byte removeAtIndex(int index)
removeAtIndex in interface MutableByteListpublic byte set(int index,
byte element)
set in interface MutableByteListpublic UnmodifiableByteList with(byte element)
with in interface MutableByteCollectionwith in interface MutableByteListwith in class AbstractUnmodifiableByteCollectionpublic UnmodifiableByteList without(byte element)
without in interface MutableByteCollectionwithout in interface MutableByteListwithout in class AbstractUnmodifiableByteCollectionpublic UnmodifiableByteList withAll(ByteIterable elements)
withAll in interface MutableByteCollectionwithAll in interface MutableByteListwithAll in class AbstractUnmodifiableByteCollectionpublic UnmodifiableByteList withoutAll(ByteIterable elements)
withoutAll in interface MutableByteCollectionwithoutAll in interface MutableByteListwithoutAll in class AbstractUnmodifiableByteCollectionpublic MutableByteList select(BytePredicate predicate)
select in interface ByteIterableselect in interface MutableByteCollectionselect in interface ByteListselect in interface MutableByteListselect in interface ReversibleByteIterableselect in class AbstractUnmodifiableByteCollectionpublic MutableByteList reject(BytePredicate predicate)
reject in interface ByteIterablereject in interface MutableByteCollectionreject in interface ByteListreject in interface MutableByteListreject in interface ReversibleByteIterablereject in class AbstractUnmodifiableByteCollectionpublic <V> MutableList<V> collect(ByteToObjectFunction<? extends V> function)
collect in interface ByteIterablecollect in interface MutableByteCollectioncollect in interface ByteListcollect in interface MutableByteListcollect in interface ReversibleByteIterablecollect in class AbstractUnmodifiableByteCollectionpublic MutableByteList sortThis()
MutableByteListsortThis in interface MutableByteListpublic long dotProduct(ByteList list)
dotProduct in interface ByteListpublic boolean equals(Object otherList)
ByteListList.equals(Object).public int hashCode()
ByteListList.hashCode().public LazyByteIterable asLazy()
asLazy in interface ByteIterableasLazy in class AbstractUnmodifiableByteCollectionpublic MutableByteList asUnmodifiable()
asUnmodifiable in interface MutableByteCollectionasUnmodifiable in interface MutableByteListasUnmodifiable in class AbstractUnmodifiableByteCollectionpublic MutableByteList asSynchronized()
asSynchronized in interface MutableByteCollectionasSynchronized in interface MutableByteListasSynchronized in class AbstractUnmodifiableByteCollectionpublic ImmutableByteList toImmutable()
MutableByteListtoImmutable in interface MutableByteCollectiontoImmutable in interface ByteListtoImmutable in interface MutableByteListtoImmutable in class AbstractUnmodifiableByteCollectionpublic MutableByteList reverseThis()
reverseThis in interface MutableByteListpublic MutableByteList toReversed()
toReversed in interface ByteListtoReversed in interface MutableByteListtoReversed in interface ReversibleByteIterablepublic void forEachWithIndex(ByteIntProcedure procedure)
forEachWithIndex in interface ReversibleByteIterablepublic LazyByteIterable asReversed()
asReversed in interface ReversibleByteIterablepublic <T> T injectInto(T injectedValue,
ObjectByteToObjectFunction<? super T,? extends T> function)
injectInto in interface ByteIterableinjectInto in class AbstractUnmodifiableByteCollectionpublic <T> T injectIntoWithIndex(T injectedValue,
ObjectByteIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface ReversibleByteIterablepublic MutableByteList subList(int fromIndex, int toIndex)
subList in interface ByteListsubList in interface MutableByteListList#subList(int fromIndex, int toIndex)}Copyright © 2004–2017. All rights reserved.