Serializable, ByteIterable, MutableByteCollection, ByteList, MutableByteList, OrderedByteIterable, ReversibleByteIterable, PrimitiveIterablepublic class UnmodifiableByteList extends AbstractUnmodifiableByteCollection implements MutableByteList
| Constructor | Description |
|---|---|
UnmodifiableByteList(MutableByteList list) |
| 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) |
|
<V> MutableList<V> |
collect(ByteToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
<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>> |
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.
|
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 |
newEmpty() |
Creates a new empty mutable version of the same List type.
|
MutableByteList |
reject(BytePredicate predicate) |
Returns a new ByteIterable with all of the elements in the ByteIterable that
return false for the specified predicate.
|
byte |
removeAtIndex(int index) |
|
MutableByteList |
reverseThis() |
|
MutableByteList |
select(BytePredicate predicate) |
Returns a new ByteIterable with all of the elements in the ByteIterable that
return true for the specified 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) |
|
<T> MutableList<ByteObjectPair<T>> |
zip(Iterable<T> iterable) |
Returns a
MutableList formed from this MutableByteList and a ListIterable by
combining corresponding elements in pairs. |
MutableList<ByteBytePair> |
zipByte(ByteIterable iterable) |
Returns a
MutableList formed from this MutableByteList and another ByteList by
combining corresponding elements in pairs. |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, byteIterator, chunk, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListadd, addAll, addAll, byteIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAlltapappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic UnmodifiableByteList(MutableByteList list)
public byte getFirst()
getFirst in interface OrderedByteIterablepublic byte getLast()
getLast in interface ReversibleByteIterablepublic int indexOf(byte value)
indexOf in interface OrderedByteIterablepublic 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)
ByteIterableselect in interface ByteIterableselect in interface ByteListselect in interface MutableByteCollectionselect in interface MutableByteListselect in interface OrderedByteIterableselect in interface ReversibleByteIterableselect in class AbstractUnmodifiableByteCollectionpublic MutableByteList reject(BytePredicate predicate)
ByteIterablereject in interface ByteIterablereject in interface ByteListreject in interface MutableByteCollectionreject in interface MutableByteListreject in interface OrderedByteIterablereject in interface ReversibleByteIterablereject in class AbstractUnmodifiableByteCollectionpublic <V> MutableList<V> collect(ByteToObjectFunction<? extends V> function)
ByteIterablecollect in interface ByteIterablecollect in interface ByteListcollect in interface MutableByteCollectioncollect in interface MutableByteListcollect in interface OrderedByteIterablecollect in interface ReversibleByteIterablecollect in class AbstractUnmodifiableByteCollectionpublic MutableByteList sortThis()
MutableByteListsortThis in interface MutableByteListpublic int binarySearch(byte value)
binarySearch in interface ByteListpublic long dotProduct(ByteList list)
dotProduct in interface ByteListpublic boolean equals(Object otherList)
ByteListList.equals(Object).public int hashCode()
ByteListList.hashCode().public 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 ByteListtoImmutable in interface MutableByteCollectiontoImmutable in interface MutableByteListtoImmutable in class AbstractUnmodifiableByteCollectionpublic MutableByteList newEmpty()
MutableByteListnewEmpty in interface MutableByteCollectionnewEmpty in interface MutableByteListpublic 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 OrderedByteIterablepublic LazyByteIterable asReversed()
asReversed in interface ReversibleByteIterablepublic <T> T injectIntoWithIndex(T injectedValue,
ObjectByteIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface OrderedByteIterableinjectIntoWithIndex in interface ReversibleByteIterablepublic MutableByteList distinct()
distinct in interface ByteListdistinct in interface MutableByteListdistinct in interface ReversibleByteIterablepublic MutableByteList subList(int fromIndex, int toIndex)
subList in interface ByteListsubList in interface MutableByteListList.subList(int fromIndex, int toIndex)public MutableList<ByteBytePair> zipByte(ByteIterable iterable)
MutableByteListMutableList 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.zipByte in interface ByteListzipByte in interface MutableByteListpublic <T> MutableList<ByteObjectPair<T>> zip(Iterable<T> iterable)
MutableByteListMutableList 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.zip in interface ByteListzip in interface MutableByteListpublic <V> MutableList<V> collectWithIndex(ByteIntToObjectFunction<? extends V> function)
collectWithIndex in interface ByteListcollectWithIndex in interface MutableByteListcollectWithIndex in interface OrderedByteIterablecollectWithIndex in interface ReversibleByteIterablepublic <V,R extends Collection<V>> R collectWithIndex(ByteIntToObjectFunction<? extends V> function, R target)
collectWithIndex in interface OrderedByteIterableCopyright © 2004–2019. All rights reserved.