java.io.Serializable
, ByteIterable
, MutableByteCollection
, ByteList
, MutableByteList
, OrderedByteIterable
, ReversibleByteIterable
, PrimitiveIterable
public class SynchronizedByteList extends AbstractSynchronizedByteCollection implements MutableByteList
MutableByteList
. It is imperative that the user manually synchronize on the on the
collection when iterating over it using an iterator or stream.
This file was automatically generated from template file synchronizedPrimitiveList.stg.
MutableByteList.asSynchronized()
,
MutableList.asSynchronized()
,
Serialized FormConstructor | Description |
---|---|
SynchronizedByteList(MutableByteList list) |
|
SynchronizedByteList(MutableByteList list,
java.lang.Object newLock) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
addAllAtIndex(int index,
byte... source) |
|
boolean |
addAllAtIndex(int index,
ByteIterable source) |
|
void |
addAtIndex(int index,
byte element) |
|
LazyByteIterable |
asLazy() |
Returns a LazyByteIterable adapter wrapping the source ByteIterable.
|
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 java.util.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(java.lang.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() |
|
SynchronizedByteList |
with(byte element) |
|
SynchronizedByteList |
withAll(ByteIterable elements) |
|
SynchronizedByteList |
without(byte element) |
|
SynchronizedByteList |
withoutAll(ByteIterable elements) |
|
<T> MutableList<ByteObjectPair<T>> |
zip(java.lang.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, 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, toString
allSatisfy, anySatisfy, 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
add, addAll, addAll, byteIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAll
tap
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public SynchronizedByteList(MutableByteList list)
public SynchronizedByteList(MutableByteList list, java.lang.Object newLock)
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 SynchronizedByteList with(byte element)
with
in interface MutableByteCollection
with
in interface MutableByteList
with
in class AbstractSynchronizedByteCollection
public SynchronizedByteList without(byte element)
without
in interface MutableByteCollection
without
in interface MutableByteList
without
in class AbstractSynchronizedByteCollection
public SynchronizedByteList withAll(ByteIterable elements)
withAll
in interface MutableByteCollection
withAll
in interface MutableByteList
withAll
in class AbstractSynchronizedByteCollection
public SynchronizedByteList withoutAll(ByteIterable elements)
withoutAll
in interface MutableByteCollection
withoutAll
in interface MutableByteList
withoutAll
in class AbstractSynchronizedByteCollection
public MutableByteList select(BytePredicate predicate)
ByteIterable
select
in interface ByteIterable
select
in interface ByteList
select
in interface MutableByteCollection
select
in interface MutableByteList
select
in interface OrderedByteIterable
select
in interface ReversibleByteIterable
select
in class AbstractSynchronizedByteCollection
public MutableByteList reject(BytePredicate predicate)
ByteIterable
reject
in interface ByteIterable
reject
in interface ByteList
reject
in interface MutableByteCollection
reject
in interface MutableByteList
reject
in interface OrderedByteIterable
reject
in interface ReversibleByteIterable
reject
in class AbstractSynchronizedByteCollection
public <V> MutableList<V> collect(ByteToObjectFunction<? extends V> function)
ByteIterable
collect
in interface ByteIterable
collect
in interface ByteList
collect
in interface MutableByteCollection
collect
in interface MutableByteList
collect
in interface OrderedByteIterable
collect
in interface ReversibleByteIterable
collect
in class AbstractSynchronizedByteCollection
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(java.lang.Object otherList)
ByteList
List.equals(Object)
.public int hashCode()
ByteList
List.hashCode()
.public LazyByteIterable asLazy()
ByteIterable
asLazy
in interface ByteIterable
asLazy
in class AbstractSynchronizedByteCollection
public MutableByteList asUnmodifiable()
asUnmodifiable
in interface MutableByteCollection
asUnmodifiable
in interface MutableByteList
asUnmodifiable
in class AbstractSynchronizedByteCollection
public MutableByteList asSynchronized()
asSynchronized
in interface MutableByteCollection
asSynchronized
in interface MutableByteList
asSynchronized
in class AbstractSynchronizedByteCollection
public ImmutableByteList toImmutable()
MutableByteList
toImmutable
in interface ByteList
toImmutable
in interface MutableByteCollection
toImmutable
in interface MutableByteList
toImmutable
in class AbstractSynchronizedByteCollection
public MutableByteList newEmpty()
MutableByteList
newEmpty
in interface MutableByteCollection
newEmpty
in interface MutableByteList
public MutableByteList reverseThis()
reverseThis
in interface MutableByteList
public MutableByteList toReversed()
toReversed
in interface ByteList
toReversed
in interface MutableByteList
toReversed
in interface ReversibleByteIterable
public LazyByteIterable asReversed()
asReversed
in interface ReversibleByteIterable
public void forEachWithIndex(ByteIntProcedure procedure)
forEachWithIndex
in interface OrderedByteIterable
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)
public MutableList<ByteBytePair> zipByte(ByteIterable iterable)
MutableByteList
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.zipByte
in interface ByteList
zipByte
in interface MutableByteList
public <T> MutableList<ByteObjectPair<T>> zip(java.lang.Iterable<T> iterable)
MutableByteList
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.zip
in interface ByteList
zip
in interface MutableByteList
public <V> MutableList<V> collectWithIndex(ByteIntToObjectFunction<? extends V> function)
collectWithIndex
in interface ByteList
collectWithIndex
in interface MutableByteList
collectWithIndex
in interface OrderedByteIterable
collectWithIndex
in interface ReversibleByteIterable
public <V,R extends java.util.Collection<V>> R collectWithIndex(ByteIntToObjectFunction<? extends V> function, R target)
collectWithIndex
in interface OrderedByteIterable
Copyright © 2004–2020. All rights reserved.