@NotThreadSafe public class ByteArrayList extends AbstractByteIterable implements org.eclipse.collections.api.list.primitive.MutableByteList, Externalizable
FastList, and is memory-optimized for byte primitives.
This file was automatically generated from template file primitiveArrayList.stg.| Constructor and Description |
|---|
ByteArrayList() |
ByteArrayList(byte... array) |
ByteArrayList(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(byte newItem) |
boolean |
addAll(byte... source) |
boolean |
addAll(org.eclipse.collections.api.ByteIterable source) |
boolean |
addAllAtIndex(int index,
byte... source) |
boolean |
addAllAtIndex(int index,
org.eclipse.collections.api.ByteIterable source) |
void |
addAtIndex(int index,
byte element) |
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
org.eclipse.collections.api.LazyByteIterable |
asReversed() |
org.eclipse.collections.api.list.primitive.MutableByteList |
asSynchronized() |
org.eclipse.collections.api.list.primitive.MutableByteList |
asUnmodifiable() |
int |
binarySearch(byte value) |
org.eclipse.collections.api.iterator.MutableByteIterator |
byteIterator() |
void |
clear() |
<V> org.eclipse.collections.api.list.MutableList<V> |
collect(org.eclipse.collections.api.block.function.primitive.ByteToObjectFunction<? extends V> function) |
boolean |
contains(byte value) |
int |
count(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate) |
byte |
detectIfNone(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate,
byte ifNone) |
org.eclipse.collections.api.list.primitive.MutableByteList |
distinct() |
long |
dotProduct(org.eclipse.collections.api.list.primitive.ByteList list) |
void |
each(org.eclipse.collections.api.block.procedure.primitive.ByteProcedure procedure) |
void |
ensureCapacity(int minCapacity) |
boolean |
equals(Object otherList) |
void |
forEach(org.eclipse.collections.api.block.procedure.primitive.ByteProcedure procedure) |
void |
forEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.ByteIntProcedure procedure) |
byte |
get(int index) |
byte |
getFirst() |
byte |
getLast() |
int |
hashCode() |
int |
indexOf(byte value) |
<T> T |
injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectByteToObjectFunction<? super T,? extends T> function) |
<T> T |
injectIntoWithIndex(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectByteIntToObjectFunction<? super T,? extends T> function) |
int |
lastIndexOf(byte value) |
byte |
max() |
byte |
min() |
static ByteArrayList |
newList(org.eclipse.collections.api.ByteIterable source) |
static ByteArrayList |
newListWith(byte... elements)
Creates a new list using the passed
elements argument as the backing store. |
static ByteArrayList |
newWithNValues(int size,
byte value) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate) |
void |
readExternal(ObjectInput in) |
ByteArrayList |
reject(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate) |
boolean |
remove(byte value) |
boolean |
removeAll(byte... source) |
boolean |
removeAll(org.eclipse.collections.api.ByteIterable source) |
byte |
removeAtIndex(int index) |
boolean |
retainAll(byte... source) |
boolean |
retainAll(org.eclipse.collections.api.ByteIterable source) |
ByteArrayList |
reverseThis() |
ByteArrayList |
select(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate) |
byte |
set(int index,
byte element) |
int |
size() |
ByteArrayList |
sortThis() |
org.eclipse.collections.api.list.primitive.MutableByteList |
subList(int fromIndex,
int toIndex) |
long |
sum() |
byte[] |
toArray() |
org.eclipse.collections.api.list.primitive.ImmutableByteList |
toImmutable() |
ByteArrayList |
toReversed() |
void |
trimToSize() |
ByteArrayList |
with(byte element) |
ByteArrayList |
with(byte element1,
byte element2) |
ByteArrayList |
with(byte element1,
byte element2,
byte element3) |
ByteArrayList |
with(byte element1,
byte element2,
byte element3,
byte... elements) |
ByteArrayList |
withAll(org.eclipse.collections.api.ByteIterable elements) |
ByteArrayList |
without(byte element) |
ByteArrayList |
withoutAll(org.eclipse.collections.api.ByteIterable elements) |
void |
writeExternal(ObjectOutput out) |
appendString, appendString, asLazy, average, containsAll, containsAll, isEmpty, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, notEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringpublic ByteArrayList()
public ByteArrayList(int initialCapacity)
public ByteArrayList(byte... array)
public static ByteArrayList newListWith(byte... elements)
elements argument as the backing store.
!!! WARNING: This method uses the passed in array, so can be very unsafe if the original array is held onto anywhere else. !!!
public static ByteArrayList newList(org.eclipse.collections.api.ByteIterable source)
public static ByteArrayList newWithNValues(int size, byte value)
public int size()
size in interface org.eclipse.collections.api.PrimitiveIterablepublic void clear()
clear in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionpublic boolean contains(byte value)
contains in interface org.eclipse.collections.api.ByteIterablepublic byte get(int index)
get in interface org.eclipse.collections.api.list.primitive.ByteListpublic byte getFirst()
getFirst in interface org.eclipse.collections.api.ordered.primitive.OrderedByteIterablepublic byte getLast()
getLast in interface org.eclipse.collections.api.ordered.primitive.ReversibleByteIterablepublic int indexOf(byte value)
indexOf in interface org.eclipse.collections.api.ordered.primitive.OrderedByteIterablepublic int lastIndexOf(byte value)
lastIndexOf in interface org.eclipse.collections.api.list.primitive.ByteListpublic void trimToSize()
public void ensureCapacity(int minCapacity)
public boolean add(byte newItem)
add in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionpublic boolean addAll(byte... source)
addAll in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionpublic boolean addAll(org.eclipse.collections.api.ByteIterable source)
addAll in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionpublic void addAtIndex(int index,
byte element)
addAtIndex in interface org.eclipse.collections.api.list.primitive.MutableByteListpublic boolean addAllAtIndex(int index,
byte... source)
addAllAtIndex in interface org.eclipse.collections.api.list.primitive.MutableByteListpublic boolean addAllAtIndex(int index,
org.eclipse.collections.api.ByteIterable source)
addAllAtIndex in interface org.eclipse.collections.api.list.primitive.MutableByteListpublic boolean remove(byte value)
remove in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionpublic boolean removeAll(org.eclipse.collections.api.ByteIterable source)
removeAll in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionpublic boolean removeAll(byte... source)
removeAll in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionpublic boolean retainAll(org.eclipse.collections.api.ByteIterable source)
retainAll in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionpublic boolean retainAll(byte... source)
retainAll in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionpublic byte removeAtIndex(int index)
removeAtIndex in interface org.eclipse.collections.api.list.primitive.MutableByteListpublic byte set(int index,
byte element)
set in interface org.eclipse.collections.api.list.primitive.MutableByteListpublic ByteArrayList with(byte element)
with in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionwith in interface org.eclipse.collections.api.list.primitive.MutableByteListpublic ByteArrayList without(byte element)
without in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionwithout in interface org.eclipse.collections.api.list.primitive.MutableByteListpublic ByteArrayList withAll(org.eclipse.collections.api.ByteIterable elements)
withAll in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionwithAll in interface org.eclipse.collections.api.list.primitive.MutableByteListpublic ByteArrayList withoutAll(org.eclipse.collections.api.ByteIterable elements)
withoutAll in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionwithoutAll in interface org.eclipse.collections.api.list.primitive.MutableByteListpublic ByteArrayList with(byte element1, byte element2)
public ByteArrayList with(byte element1, byte element2, byte element3)
public ByteArrayList with(byte element1, byte element2, byte element3, byte... elements)
public org.eclipse.collections.api.iterator.MutableByteIterator byteIterator()
byteIterator in interface org.eclipse.collections.api.ByteIterablebyteIterator in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionpublic void forEach(org.eclipse.collections.api.block.procedure.primitive.ByteProcedure procedure)
forEach in interface org.eclipse.collections.api.ByteIterablepublic void each(org.eclipse.collections.api.block.procedure.primitive.ByteProcedure procedure)
each in interface org.eclipse.collections.api.ByteIterablepublic void forEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.ByteIntProcedure procedure)
forEachWithIndex in interface org.eclipse.collections.api.ordered.primitive.OrderedByteIterablepublic <T> T injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectByteToObjectFunction<? super T,? extends T> function)
injectInto in interface org.eclipse.collections.api.ByteIterablepublic <T> T injectIntoWithIndex(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectByteIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface org.eclipse.collections.api.ordered.primitive.OrderedByteIterableinjectIntoWithIndex in interface org.eclipse.collections.api.ordered.primitive.ReversibleByteIterablepublic int count(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate)
count in interface org.eclipse.collections.api.ByteIterablepublic boolean anySatisfy(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate)
anySatisfy in interface org.eclipse.collections.api.ByteIterablepublic boolean allSatisfy(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate)
allSatisfy in interface org.eclipse.collections.api.ByteIterablepublic boolean noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate)
noneSatisfy in interface org.eclipse.collections.api.ByteIterablepublic ByteArrayList select(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate)
select in interface org.eclipse.collections.api.ByteIterableselect in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionselect in interface org.eclipse.collections.api.list.primitive.ByteListselect in interface org.eclipse.collections.api.list.primitive.MutableByteListselect in interface org.eclipse.collections.api.ordered.primitive.OrderedByteIterableselect in interface org.eclipse.collections.api.ordered.primitive.ReversibleByteIterablepublic ByteArrayList reject(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate)
reject in interface org.eclipse.collections.api.ByteIterablereject in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionreject in interface org.eclipse.collections.api.list.primitive.ByteListreject in interface org.eclipse.collections.api.list.primitive.MutableByteListreject in interface org.eclipse.collections.api.ordered.primitive.OrderedByteIterablereject in interface org.eclipse.collections.api.ordered.primitive.ReversibleByteIterablepublic byte detectIfNone(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate,
byte ifNone)
detectIfNone in interface org.eclipse.collections.api.ByteIterablepublic <V> org.eclipse.collections.api.list.MutableList<V> collect(org.eclipse.collections.api.block.function.primitive.ByteToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.ByteIterablecollect in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectioncollect in interface org.eclipse.collections.api.list.primitive.ByteListcollect in interface org.eclipse.collections.api.list.primitive.MutableByteListcollect in interface org.eclipse.collections.api.ordered.primitive.OrderedByteIterablecollect in interface org.eclipse.collections.api.ordered.primitive.ReversibleByteIterablepublic byte max()
max in interface org.eclipse.collections.api.ByteIterablepublic byte min()
min in interface org.eclipse.collections.api.ByteIterablepublic long sum()
sum in interface org.eclipse.collections.api.ByteIterablepublic long dotProduct(org.eclipse.collections.api.list.primitive.ByteList list)
dotProduct in interface org.eclipse.collections.api.list.primitive.ByteListpublic byte[] toArray()
toArray in interface org.eclipse.collections.api.ByteIterablepublic boolean equals(Object otherList)
public int hashCode()
public void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic org.eclipse.collections.api.list.primitive.MutableByteList asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionasUnmodifiable in interface org.eclipse.collections.api.list.primitive.MutableByteListpublic org.eclipse.collections.api.list.primitive.MutableByteList asSynchronized()
asSynchronized in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionasSynchronized in interface org.eclipse.collections.api.list.primitive.MutableByteListpublic org.eclipse.collections.api.list.primitive.ImmutableByteList toImmutable()
toImmutable in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectiontoImmutable in interface org.eclipse.collections.api.list.primitive.ByteListtoImmutable in interface org.eclipse.collections.api.list.primitive.MutableByteListpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionpublic org.eclipse.collections.api.LazyByteIterable asReversed()
asReversed in interface org.eclipse.collections.api.ordered.primitive.ReversibleByteIterablepublic ByteArrayList reverseThis()
reverseThis in interface org.eclipse.collections.api.list.primitive.MutableByteListpublic ByteArrayList sortThis()
sortThis in interface org.eclipse.collections.api.list.primitive.MutableByteListpublic ByteArrayList toReversed()
toReversed in interface org.eclipse.collections.api.list.primitive.ByteListtoReversed in interface org.eclipse.collections.api.list.primitive.MutableByteListtoReversed in interface org.eclipse.collections.api.ordered.primitive.ReversibleByteIterablepublic int binarySearch(byte value)
binarySearch in interface org.eclipse.collections.api.list.primitive.ByteListpublic org.eclipse.collections.api.list.primitive.MutableByteList distinct()
distinct in interface org.eclipse.collections.api.list.primitive.ByteListdistinct in interface org.eclipse.collections.api.list.primitive.MutableByteListdistinct in interface org.eclipse.collections.api.ordered.primitive.ReversibleByteIterablepublic org.eclipse.collections.api.list.primitive.MutableByteList subList(int fromIndex,
int toIndex)
subList in interface org.eclipse.collections.api.list.primitive.ByteListsubList in interface org.eclipse.collections.api.list.primitive.MutableByteListCopyright © 2004–2018. All rights reserved.