@NotThreadSafe public class CharArrayList extends AbstractCharIterable implements org.eclipse.collections.api.list.primitive.MutableCharList, Externalizable
FastList, and is memory-optimized for char primitives.
This file was automatically generated from template file primitiveArrayList.stg.| Constructor and Description |
|---|
CharArrayList() |
CharArrayList(char... array) |
CharArrayList(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(char newItem) |
boolean |
addAll(char... source) |
boolean |
addAll(org.eclipse.collections.api.CharIterable source) |
boolean |
addAllAtIndex(int index,
char... source) |
boolean |
addAllAtIndex(int index,
org.eclipse.collections.api.CharIterable source) |
void |
addAtIndex(int index,
char element) |
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
org.eclipse.collections.api.LazyCharIterable |
asReversed() |
org.eclipse.collections.api.list.primitive.MutableCharList |
asSynchronized() |
org.eclipse.collections.api.list.primitive.MutableCharList |
asUnmodifiable() |
int |
binarySearch(char value) |
org.eclipse.collections.api.iterator.MutableCharIterator |
charIterator() |
void |
clear() |
<V> org.eclipse.collections.api.list.MutableList<V> |
collect(org.eclipse.collections.api.block.function.primitive.CharToObjectFunction<? extends V> function) |
boolean |
contains(char value) |
int |
count(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate) |
char |
detectIfNone(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate,
char ifNone) |
org.eclipse.collections.api.list.primitive.MutableCharList |
distinct() |
long |
dotProduct(org.eclipse.collections.api.list.primitive.CharList list) |
void |
each(org.eclipse.collections.api.block.procedure.primitive.CharProcedure procedure) |
void |
ensureCapacity(int minCapacity) |
boolean |
equals(Object otherList) |
void |
forEach(org.eclipse.collections.api.block.procedure.primitive.CharProcedure procedure) |
void |
forEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.CharIntProcedure procedure) |
char |
get(int index) |
char |
getFirst() |
char |
getLast() |
int |
hashCode() |
int |
indexOf(char value) |
<T> T |
injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectCharToObjectFunction<? super T,? extends T> function) |
<T> T |
injectIntoWithIndex(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectCharIntToObjectFunction<? super T,? extends T> function) |
int |
lastIndexOf(char value) |
char |
max() |
char |
min() |
static CharArrayList |
newList(org.eclipse.collections.api.CharIterable source) |
static CharArrayList |
newListWith(char... elements)
Creates a new list using the passed
elements argument as the backing store. |
static CharArrayList |
newWithNValues(int size,
char value) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate) |
void |
readExternal(ObjectInput in) |
CharArrayList |
reject(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate) |
boolean |
remove(char value) |
boolean |
removeAll(char... source) |
boolean |
removeAll(org.eclipse.collections.api.CharIterable source) |
char |
removeAtIndex(int index) |
boolean |
retainAll(char... source) |
boolean |
retainAll(org.eclipse.collections.api.CharIterable source) |
CharArrayList |
reverseThis() |
CharArrayList |
select(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate) |
char |
set(int index,
char element) |
int |
size() |
CharArrayList |
sortThis() |
org.eclipse.collections.api.list.primitive.MutableCharList |
subList(int fromIndex,
int toIndex) |
long |
sum() |
char[] |
toArray() |
org.eclipse.collections.api.list.primitive.ImmutableCharList |
toImmutable() |
CharArrayList |
toReversed() |
void |
trimToSize() |
CharArrayList |
with(char element) |
CharArrayList |
with(char element1,
char element2) |
CharArrayList |
with(char element1,
char element2,
char element3) |
CharArrayList |
with(char element1,
char element2,
char element3,
char... elements) |
CharArrayList |
withAll(org.eclipse.collections.api.CharIterable elements) |
CharArrayList |
without(char element) |
CharArrayList |
withoutAll(org.eclipse.collections.api.CharIterable 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 CharArrayList()
public CharArrayList(int initialCapacity)
public CharArrayList(char... array)
public static CharArrayList newListWith(char... 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 CharArrayList newList(org.eclipse.collections.api.CharIterable source)
public static CharArrayList newWithNValues(int size, char value)
public int size()
size in interface org.eclipse.collections.api.PrimitiveIterablepublic void clear()
clear in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic boolean contains(char value)
contains in interface org.eclipse.collections.api.CharIterablepublic char get(int index)
get in interface org.eclipse.collections.api.list.primitive.CharListpublic char getFirst()
getFirst in interface org.eclipse.collections.api.ordered.primitive.OrderedCharIterablepublic char getLast()
getLast in interface org.eclipse.collections.api.ordered.primitive.ReversibleCharIterablepublic int indexOf(char value)
indexOf in interface org.eclipse.collections.api.ordered.primitive.OrderedCharIterablepublic int lastIndexOf(char value)
lastIndexOf in interface org.eclipse.collections.api.list.primitive.CharListpublic void trimToSize()
public void ensureCapacity(int minCapacity)
public boolean add(char newItem)
add in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic boolean addAll(char... source)
addAll in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic boolean addAll(org.eclipse.collections.api.CharIterable source)
addAll in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic void addAtIndex(int index,
char element)
addAtIndex in interface org.eclipse.collections.api.list.primitive.MutableCharListpublic boolean addAllAtIndex(int index,
char... source)
addAllAtIndex in interface org.eclipse.collections.api.list.primitive.MutableCharListpublic boolean addAllAtIndex(int index,
org.eclipse.collections.api.CharIterable source)
addAllAtIndex in interface org.eclipse.collections.api.list.primitive.MutableCharListpublic boolean remove(char value)
remove in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic boolean removeAll(org.eclipse.collections.api.CharIterable source)
removeAll in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic boolean removeAll(char... source)
removeAll in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic boolean retainAll(org.eclipse.collections.api.CharIterable source)
retainAll in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic boolean retainAll(char... source)
retainAll in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic char removeAtIndex(int index)
removeAtIndex in interface org.eclipse.collections.api.list.primitive.MutableCharListpublic char set(int index,
char element)
set in interface org.eclipse.collections.api.list.primitive.MutableCharListpublic CharArrayList with(char element)
with in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionwith in interface org.eclipse.collections.api.list.primitive.MutableCharListpublic CharArrayList without(char element)
without in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionwithout in interface org.eclipse.collections.api.list.primitive.MutableCharListpublic CharArrayList withAll(org.eclipse.collections.api.CharIterable elements)
withAll in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionwithAll in interface org.eclipse.collections.api.list.primitive.MutableCharListpublic CharArrayList withoutAll(org.eclipse.collections.api.CharIterable elements)
withoutAll in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionwithoutAll in interface org.eclipse.collections.api.list.primitive.MutableCharListpublic CharArrayList with(char element1, char element2)
public CharArrayList with(char element1, char element2, char element3)
public CharArrayList with(char element1, char element2, char element3, char... elements)
public org.eclipse.collections.api.iterator.MutableCharIterator charIterator()
charIterator in interface org.eclipse.collections.api.CharIterablecharIterator in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic void forEach(org.eclipse.collections.api.block.procedure.primitive.CharProcedure procedure)
forEach in interface org.eclipse.collections.api.CharIterablepublic void each(org.eclipse.collections.api.block.procedure.primitive.CharProcedure procedure)
each in interface org.eclipse.collections.api.CharIterablepublic void forEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.CharIntProcedure procedure)
forEachWithIndex in interface org.eclipse.collections.api.ordered.primitive.OrderedCharIterablepublic <T> T injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectCharToObjectFunction<? super T,? extends T> function)
injectInto in interface org.eclipse.collections.api.CharIterablepublic <T> T injectIntoWithIndex(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectCharIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface org.eclipse.collections.api.ordered.primitive.OrderedCharIterableinjectIntoWithIndex in interface org.eclipse.collections.api.ordered.primitive.ReversibleCharIterablepublic int count(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate)
count in interface org.eclipse.collections.api.CharIterablepublic boolean anySatisfy(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate)
anySatisfy in interface org.eclipse.collections.api.CharIterablepublic boolean allSatisfy(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate)
allSatisfy in interface org.eclipse.collections.api.CharIterablepublic boolean noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate)
noneSatisfy in interface org.eclipse.collections.api.CharIterablepublic CharArrayList select(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate)
select in interface org.eclipse.collections.api.CharIterableselect in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionselect in interface org.eclipse.collections.api.list.primitive.CharListselect in interface org.eclipse.collections.api.list.primitive.MutableCharListselect in interface org.eclipse.collections.api.ordered.primitive.OrderedCharIterableselect in interface org.eclipse.collections.api.ordered.primitive.ReversibleCharIterablepublic CharArrayList reject(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate)
reject in interface org.eclipse.collections.api.CharIterablereject in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionreject in interface org.eclipse.collections.api.list.primitive.CharListreject in interface org.eclipse.collections.api.list.primitive.MutableCharListreject in interface org.eclipse.collections.api.ordered.primitive.OrderedCharIterablereject in interface org.eclipse.collections.api.ordered.primitive.ReversibleCharIterablepublic char detectIfNone(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate,
char ifNone)
detectIfNone in interface org.eclipse.collections.api.CharIterablepublic <V> org.eclipse.collections.api.list.MutableList<V> collect(org.eclipse.collections.api.block.function.primitive.CharToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.CharIterablecollect in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectioncollect in interface org.eclipse.collections.api.list.primitive.CharListcollect in interface org.eclipse.collections.api.list.primitive.MutableCharListcollect in interface org.eclipse.collections.api.ordered.primitive.OrderedCharIterablecollect in interface org.eclipse.collections.api.ordered.primitive.ReversibleCharIterablepublic char max()
max in interface org.eclipse.collections.api.CharIterablepublic char min()
min in interface org.eclipse.collections.api.CharIterablepublic long sum()
sum in interface org.eclipse.collections.api.CharIterablepublic long dotProduct(org.eclipse.collections.api.list.primitive.CharList list)
dotProduct in interface org.eclipse.collections.api.list.primitive.CharListpublic char[] toArray()
toArray in interface org.eclipse.collections.api.CharIterablepublic 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.MutableCharList asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionasUnmodifiable in interface org.eclipse.collections.api.list.primitive.MutableCharListpublic org.eclipse.collections.api.list.primitive.MutableCharList asSynchronized()
asSynchronized in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionasSynchronized in interface org.eclipse.collections.api.list.primitive.MutableCharListpublic org.eclipse.collections.api.list.primitive.ImmutableCharList toImmutable()
toImmutable in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectiontoImmutable in interface org.eclipse.collections.api.list.primitive.CharListtoImmutable in interface org.eclipse.collections.api.list.primitive.MutableCharListpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionpublic org.eclipse.collections.api.LazyCharIterable asReversed()
asReversed in interface org.eclipse.collections.api.ordered.primitive.ReversibleCharIterablepublic CharArrayList reverseThis()
reverseThis in interface org.eclipse.collections.api.list.primitive.MutableCharListpublic CharArrayList sortThis()
sortThis in interface org.eclipse.collections.api.list.primitive.MutableCharListpublic CharArrayList toReversed()
toReversed in interface org.eclipse.collections.api.list.primitive.CharListtoReversed in interface org.eclipse.collections.api.list.primitive.MutableCharListtoReversed in interface org.eclipse.collections.api.ordered.primitive.ReversibleCharIterablepublic int binarySearch(char value)
binarySearch in interface org.eclipse.collections.api.list.primitive.CharListpublic org.eclipse.collections.api.list.primitive.MutableCharList distinct()
distinct in interface org.eclipse.collections.api.list.primitive.CharListdistinct in interface org.eclipse.collections.api.list.primitive.MutableCharListdistinct in interface org.eclipse.collections.api.ordered.primitive.ReversibleCharIterablepublic org.eclipse.collections.api.list.primitive.MutableCharList subList(int fromIndex,
int toIndex)
subList in interface org.eclipse.collections.api.list.primitive.CharListsubList in interface org.eclipse.collections.api.list.primitive.MutableCharListCopyright © 2004–2018. All rights reserved.