ByteIterable
, MutableByteCollection
, ByteList
, MutableByteList
, OrderedByteIterable
, ReversibleByteIterable
, PrimitiveIterable
public final class SynchronizedByteList extends AbstractSynchronizedByteCollection implements MutableByteList
MutableByteList
. It is imperative that the user manually synchronize on the collection when iterating over it using the
ByteIterator
, as per Collections.synchronizedCollection(Collection)
.
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.
|
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 |
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) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, byteIterator, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toString
allSatisfy, anySatisfy, average, averageIfEmpty, 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, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
add, addAll, addAll, byteIterator, clear, remove, removeAll, removeAll, 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 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)
Copyright © 2004–2017. All rights reserved.