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 Form| Constructor and Description |
|---|
SynchronizedByteList(MutableByteList list) |
SynchronizedByteList(MutableByteList list,
Object newLock) |
| 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() |
int |
binarySearch(byte value) |
<V> MutableList<V> |
collect(ByteToObjectFunction<? extends V> function) |
<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) |
void |
forEachInBoth(ByteList other,
ByteByteProcedure procedure) |
void |
forEachWithIndex(ByteIntProcedure procedure) |
byte |
get(int index) |
byte |
getFirst() |
byte |
getLast() |
int |
hashCode() |
int |
indexOf(byte value) |
<T> T |
injectIntoWithIndex(T injectedValue,
ObjectByteIntToObjectFunction<? super T,? extends T> function) |
int |
lastIndexOf(byte value) |
MutableByteList |
newEmpty() |
MutableByteList |
reject(BytePredicate predicate) |
MutableByteList |
rejectWithIndex(ByteIntPredicate predicate)
Returns a new MutableByteList excluding all elements with corresponding indexes matching the specified predicate.
|
<R extends MutableByteCollection> |
rejectWithIndex(ByteIntPredicate predicate,
R target)
Returns a new MutableByteCollection excluding all elements with corresponding indexes matching the specified predicate.
|
byte |
removeAtIndex(int index) |
MutableByteList |
reverseThis() |
MutableByteList |
select(BytePredicate predicate) |
MutableByteList |
selectWithIndex(ByteIntPredicate predicate)
Returns a new MutableByteList including all elements with corresponding indexes matching the specified predicate.
|
<R extends MutableByteCollection> |
selectWithIndex(ByteIntPredicate predicate,
R target)
Returns a new MutableByteCollection including all elements with corresponding indexes matching the specified predicate.
|
byte |
set(int index,
byte element) |
MutableByteList |
shuffleThis() |
MutableByteList |
shuffleThis(Random rnd) |
MutableByteList |
sortThis() |
MutableByteList |
sortThis(ByteComparator comparator) |
<T> MutableByteList |
sortThisBy(ByteToObjectFunction<T> function) |
<T> MutableByteList |
sortThisBy(ByteToObjectFunction<T> function,
Comparator<? super T> comparator) |
MutableByteList |
subList(int fromIndex,
int toIndex) |
ImmutableByteList |
toImmutable() |
MutableByteList |
toReversed() |
SynchronizedByteList |
with(byte element) |
SynchronizedByteList |
withAll(ByteIterable elements) |
SynchronizedByteList |
without(byte element) |
SynchronizedByteList |
withoutAll(ByteIterable elements) |
<T> MutableList<ByteObjectPair<T>> |
zip(Iterable<T> iterable) |
MutableList<ByteBytePair> |
zipByte(ByteIterable iterable) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, byteIterator, chunk, clear, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringswap, tapadd, addAll, addAll, byteIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAllallSatisfy, anySatisfy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic SynchronizedByteList(MutableByteList list)
public SynchronizedByteList(MutableByteList list, Object newLock)
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 SynchronizedByteList with(byte element)
with in interface MutableByteCollectionwith in interface MutableByteListwith in class AbstractSynchronizedByteCollectionpublic SynchronizedByteList without(byte element)
without in interface MutableByteCollectionwithout in interface MutableByteListwithout in class AbstractSynchronizedByteCollectionpublic SynchronizedByteList withAll(ByteIterable elements)
withAll in interface MutableByteCollectionwithAll in interface MutableByteListwithAll in class AbstractSynchronizedByteCollectionpublic SynchronizedByteList withoutAll(ByteIterable elements)
withoutAll in interface MutableByteCollectionwithoutAll in interface MutableByteListwithoutAll in class AbstractSynchronizedByteCollectionpublic MutableByteList select(BytePredicate predicate)
select in interface ByteIterableselect in interface MutableByteCollectionselect in interface ByteListselect in interface MutableByteListselect in interface OrderedByteIterableselect in interface ReversibleByteIterableselect in class AbstractSynchronizedByteCollectionpublic MutableByteList reject(BytePredicate predicate)
reject in interface ByteIterablereject in interface MutableByteCollectionreject in interface ByteListreject in interface MutableByteListreject in interface OrderedByteIterablereject in interface ReversibleByteIterablereject in class AbstractSynchronizedByteCollectionpublic <V> MutableList<V> collect(ByteToObjectFunction<? extends V> function)
collect in interface ByteIterablecollect in interface MutableByteCollectioncollect in interface ByteListcollect in interface MutableByteListcollect in interface OrderedByteIterablecollect in interface ReversibleByteIterablecollect in class AbstractSynchronizedByteCollectionpublic MutableByteList sortThis()
sortThis in interface MutableByteListpublic MutableByteList sortThis(ByteComparator comparator)
sortThis in interface MutableByteListpublic <T> MutableByteList sortThisBy(ByteToObjectFunction<T> function)
sortThisBy in interface MutableByteListpublic <T> MutableByteList sortThisBy(ByteToObjectFunction<T> function, Comparator<? super T> comparator)
sortThisBy in interface MutableByteListpublic MutableByteList shuffleThis()
shuffleThis in interface MutableByteListpublic MutableByteList shuffleThis(Random rnd)
shuffleThis in interface MutableByteListpublic int binarySearch(byte value)
binarySearch in interface ByteListpublic long dotProduct(ByteList list)
dotProduct in interface ByteListpublic boolean equals(Object otherList)
public int hashCode()
public LazyByteIterable asLazy()
asLazy in interface ByteIterableasLazy in class AbstractSynchronizedByteCollectionpublic MutableByteList asUnmodifiable()
asUnmodifiable in interface MutableByteCollectionasUnmodifiable in interface MutableByteListasUnmodifiable in class AbstractSynchronizedByteCollectionpublic MutableByteList asSynchronized()
asSynchronized in interface MutableByteCollectionasSynchronized in interface MutableByteListasSynchronized in class AbstractSynchronizedByteCollectionpublic ImmutableByteList toImmutable()
toImmutable in interface MutableByteCollectiontoImmutable in interface ByteListtoImmutable in interface MutableByteListtoImmutable in class AbstractSynchronizedByteCollectionpublic MutableByteList newEmpty()
newEmpty in interface MutableByteCollectionnewEmpty in interface MutableByteListpublic MutableByteList reverseThis()
reverseThis in interface MutableByteListpublic MutableByteList toReversed()
toReversed in interface ByteListtoReversed in interface MutableByteListtoReversed in interface ReversibleByteIterablepublic LazyByteIterable asReversed()
asReversed in interface ReversibleByteIterablepublic void forEachInBoth(ByteList other, ByteByteProcedure procedure)
forEachInBoth in interface ByteListpublic void forEachWithIndex(ByteIntProcedure procedure)
forEachWithIndex in interface OrderedByteIterablepublic <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 MutableByteListpublic MutableList<ByteBytePair> zipByte(ByteIterable iterable)
zipByte in interface ByteListzipByte in interface MutableByteListpublic <T> MutableList<ByteObjectPair<T>> zip(Iterable<T> iterable)
zip in interface ByteListzip in interface MutableByteListpublic MutableByteList selectWithIndex(ByteIntPredicate predicate)
selectWithIndex in interface ByteListselectWithIndex in interface MutableByteListselectWithIndex in interface OrderedByteIterableselectWithIndex in interface ReversibleByteIterablepublic <R extends MutableByteCollection> R selectWithIndex(ByteIntPredicate predicate, R target)
selectWithIndex in interface OrderedByteIterablepublic MutableByteList rejectWithIndex(ByteIntPredicate predicate)
rejectWithIndex in interface ByteListrejectWithIndex in interface MutableByteListrejectWithIndex in interface OrderedByteIterablerejectWithIndex in interface ReversibleByteIterablepublic <R extends MutableByteCollection> R rejectWithIndex(ByteIntPredicate predicate, R target)
rejectWithIndex in interface OrderedByteIterablepublic <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–2022. All rights reserved.