ByteIterable
, ByteList
, MutableByteCollection
, OrderedByteIterable
, PrimitiveIterable
, ReversibleByteIterable
ByteArrayList
, SynchronizedByteList
, UnmodifiableByteList
public interface MutableByteList extends MutableByteCollection, ByteList
Modifier and Type | Method | Description |
---|---|---|
boolean |
addAllAtIndex(int index,
byte... source) |
|
boolean |
addAllAtIndex(int index,
ByteIterable source) |
|
void |
addAtIndex(int index,
byte element) |
|
MutableByteList |
asSynchronized() |
|
MutableByteList |
asUnmodifiable() |
|
<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.
|
default <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.
|
MutableByteList |
distinct() |
|
default 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) |
|
default MutableByteList |
tap(ByteProcedure procedure) |
|
ImmutableByteList |
toImmutable() |
Returns an immutable copy of this list.
|
MutableByteList |
toReversed() |
|
MutableByteList |
with(byte element) |
|
MutableByteList |
withAll(ByteIterable elements) |
|
MutableByteList |
without(byte element) |
|
MutableByteList |
withoutAll(ByteIterable elements) |
|
default <T> MutableList<ByteObjectPair<T>> |
zip(Iterable<T> list) |
Returns a
MutableList formed from this MutableByteList and a ListIterable by
combining corresponding elements in pairs. |
default MutableList<ByteBytePair> |
zipByte(ByteIterable iterable) |
Returns a
MutableList formed from this MutableByteList and another ByteList by
combining corresponding elements in pairs. |
allSatisfy, 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, toSortedList
binarySearch, dotProduct, equals, get, hashCode, lastIndexOf
add, addAll, addAll, byteIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAll
collectWithIndex, forEachWithIndex, getFirst, indexOf
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
asReversed, getLast, injectIntoWithIndex
void addAtIndex(int index, byte element)
boolean addAllAtIndex(int index, byte... source)
boolean addAllAtIndex(int index, ByteIterable source)
byte removeAtIndex(int index)
byte set(int index, byte element)
MutableByteList select(BytePredicate predicate)
ByteIterable
select
in interface ByteIterable
select
in interface ByteList
select
in interface MutableByteCollection
select
in interface OrderedByteIterable
select
in interface ReversibleByteIterable
MutableByteList reject(BytePredicate predicate)
ByteIterable
reject
in interface ByteIterable
reject
in interface ByteList
reject
in interface MutableByteCollection
reject
in interface OrderedByteIterable
reject
in interface ReversibleByteIterable
MutableByteList with(byte element)
with
in interface MutableByteCollection
MutableByteList without(byte element)
without
in interface MutableByteCollection
MutableByteList withAll(ByteIterable elements)
withAll
in interface MutableByteCollection
MutableByteList withoutAll(ByteIterable elements)
withoutAll
in interface MutableByteCollection
default MutableByteList tap(ByteProcedure procedure)
tap
in interface ByteIterable
tap
in interface ByteList
tap
in interface MutableByteCollection
<V> MutableList<V> collect(ByteToObjectFunction<? extends V> function)
ByteIterable
collect
in interface ByteIterable
collect
in interface ByteList
collect
in interface MutableByteCollection
collect
in interface OrderedByteIterable
collect
in interface ReversibleByteIterable
default <V> MutableList<V> collectWithIndex(ByteIntToObjectFunction<? extends V> function)
collectWithIndex
in interface ByteList
collectWithIndex
in interface OrderedByteIterable
collectWithIndex
in interface ReversibleByteIterable
MutableByteList reverseThis()
MutableByteList toReversed()
toReversed
in interface ByteList
toReversed
in interface ReversibleByteIterable
MutableByteList distinct()
distinct
in interface ByteList
distinct
in interface ReversibleByteIterable
MutableByteList sortThis()
MutableByteList asUnmodifiable()
asUnmodifiable
in interface MutableByteCollection
MutableByteList asSynchronized()
asSynchronized
in interface MutableByteCollection
ImmutableByteList toImmutable()
toImmutable
in interface ByteList
toImmutable
in interface MutableByteCollection
MutableByteList subList(int fromIndex, int toIndex)
subList
in interface ByteList
List.subList(int fromIndex, int toIndex)
default MutableList<ByteBytePair> zipByte(ByteIterable iterable)
MutableList
formed from this MutableByteList
and another ByteList
by
combining corresponding elements in pairs. If one of the two ByteList
s is longer than the other, its
remaining elements are ignored.default <T> MutableList<ByteObjectPair<T>> zip(Iterable<T> list)
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.default MutableByteList newEmpty()
newEmpty
in interface MutableByteCollection
Copyright © 2004–2019. All rights reserved.