public class CharAdapter extends AbstractCharIterable implements CharSequence, org.eclipse.collections.api.list.primitive.ImmutableCharList, Serializable
| Constructor and Description |
|---|
CharAdapter(String value) |
| Modifier and Type | Method and Description |
|---|---|
static CharAdapter |
adapt(String value) |
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() |
int |
binarySearch(char value) |
char |
charAt(int index) |
org.eclipse.collections.api.iterator.CharIterator |
charIterator() |
<V> org.eclipse.collections.api.list.ImmutableList<V> |
collect(org.eclipse.collections.api.block.function.primitive.CharToObjectFunction<? extends V> function) |
CharAdapter |
collectChar(org.eclipse.collections.api.block.function.primitive.CharToCharFunction function) |
boolean |
contains(char expected) |
int |
count(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate) |
char |
detectIfNone(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate,
char ifNone) |
CharAdapter |
distinct() |
long |
dotProduct(org.eclipse.collections.api.list.primitive.CharList list) |
void |
each(org.eclipse.collections.api.block.procedure.primitive.CharProcedure procedure) |
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) |
static CharAdapter |
from(char... chars) |
static CharAdapter |
from(org.eclipse.collections.api.CharIterable iterable) |
char |
get(int index) |
Character |
getCharacter(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) |
int |
length() |
char |
max() |
char |
min() |
CharAdapter |
newWith(char element) |
CharAdapter |
newWithAll(org.eclipse.collections.api.CharIterable elements) |
CharAdapter |
newWithout(char element) |
CharAdapter |
newWithoutAll(org.eclipse.collections.api.CharIterable elements) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate) |
CharAdapter |
reject(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate) |
CharAdapter |
select(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate) |
int |
size() |
org.eclipse.collections.api.list.primitive.ImmutableCharList |
subList(int fromIndex,
int toIndex) |
String |
subSequence(int start,
int end) |
long |
sum() |
char[] |
toArray() |
org.eclipse.collections.api.bag.primitive.MutableCharBag |
toBag() |
org.eclipse.collections.api.list.primitive.ImmutableCharList |
toImmutable() |
org.eclipse.collections.api.list.primitive.MutableCharList |
toList() |
CharAdapter |
toReversed() |
org.eclipse.collections.api.set.primitive.MutableCharSet |
toSet() |
String |
toString()
The value of toString must be strictly implemented as defined in CharSequence.
|
StringBuilder |
toStringBuilder() |
appendString, appendString, asLazy, average, containsAll, containsAll, isEmpty, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, notEmpty, toSortedArray, toSortedListchars, codePointspublic CharAdapter(String value)
public static CharAdapter adapt(String value)
public static CharAdapter from(char... chars)
public static CharAdapter from(org.eclipse.collections.api.CharIterable iterable)
public char charAt(int index)
charAt in interface CharSequencepublic int length()
length in interface CharSequencepublic String subSequence(int start, int end)
subSequence in interface CharSequencepublic StringBuilder toStringBuilder()
public String toString()
toString in interface CharSequencetoString in interface org.eclipse.collections.api.PrimitiveIterabletoString in class AbstractCharIterablepublic org.eclipse.collections.api.iterator.CharIterator charIterator()
charIterator in interface org.eclipse.collections.api.CharIterablepublic char[] toArray()
toArray in interface org.eclipse.collections.api.CharIterablepublic boolean contains(char expected)
contains in interface org.eclipse.collections.api.CharIterablepublic 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 CharAdapter distinct()
distinct in interface org.eclipse.collections.api.list.primitive.CharListdistinct in interface org.eclipse.collections.api.list.primitive.ImmutableCharListdistinct in interface org.eclipse.collections.api.ordered.primitive.ReversibleCharIterablepublic CharAdapter newWith(char element)
newWith in interface org.eclipse.collections.api.collection.primitive.ImmutableCharCollectionnewWith in interface org.eclipse.collections.api.list.primitive.ImmutableCharListpublic CharAdapter newWithout(char element)
newWithout in interface org.eclipse.collections.api.collection.primitive.ImmutableCharCollectionnewWithout in interface org.eclipse.collections.api.list.primitive.ImmutableCharListpublic CharAdapter newWithAll(org.eclipse.collections.api.CharIterable elements)
newWithAll in interface org.eclipse.collections.api.collection.primitive.ImmutableCharCollectionnewWithAll in interface org.eclipse.collections.api.list.primitive.ImmutableCharListpublic CharAdapter newWithoutAll(org.eclipse.collections.api.CharIterable elements)
newWithoutAll in interface org.eclipse.collections.api.collection.primitive.ImmutableCharCollectionnewWithoutAll in interface org.eclipse.collections.api.list.primitive.ImmutableCharListpublic CharAdapter toReversed()
toReversed in interface org.eclipse.collections.api.list.primitive.CharListtoReversed in interface org.eclipse.collections.api.list.primitive.ImmutableCharListtoReversed in interface org.eclipse.collections.api.ordered.primitive.ReversibleCharIterablepublic org.eclipse.collections.api.list.primitive.ImmutableCharList subList(int fromIndex,
int toIndex)
subList in interface org.eclipse.collections.api.list.primitive.CharListsubList in interface org.eclipse.collections.api.list.primitive.ImmutableCharListpublic char get(int index)
get in interface org.eclipse.collections.api.list.primitive.CharListpublic Character getCharacter(int index)
public long dotProduct(org.eclipse.collections.api.list.primitive.CharList list)
dotProduct in interface org.eclipse.collections.api.list.primitive.CharListpublic int binarySearch(char value)
binarySearch in interface org.eclipse.collections.api.list.primitive.CharListpublic int lastIndexOf(char value)
lastIndexOf in interface org.eclipse.collections.api.list.primitive.CharListpublic org.eclipse.collections.api.list.primitive.ImmutableCharList toImmutable()
toImmutable in interface org.eclipse.collections.api.list.primitive.CharListpublic char getLast()
getLast in interface org.eclipse.collections.api.ordered.primitive.ReversibleCharIterablepublic org.eclipse.collections.api.LazyCharIterable asReversed()
asReversed in interface org.eclipse.collections.api.ordered.primitive.ReversibleCharIterablepublic <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 char getFirst()
getFirst in interface org.eclipse.collections.api.ordered.primitive.OrderedCharIterablepublic int indexOf(char value)
indexOf in interface org.eclipse.collections.api.ordered.primitive.OrderedCharIterablepublic void forEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.CharIntProcedure procedure)
forEachWithIndex in interface org.eclipse.collections.api.ordered.primitive.OrderedCharIterablepublic CharAdapter 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.ImmutableCharCollectionselect in interface org.eclipse.collections.api.list.primitive.CharListselect in interface org.eclipse.collections.api.list.primitive.ImmutableCharListselect in interface org.eclipse.collections.api.ordered.primitive.OrderedCharIterableselect in interface org.eclipse.collections.api.ordered.primitive.ReversibleCharIterablepublic CharAdapter 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.ImmutableCharCollectionreject in interface org.eclipse.collections.api.list.primitive.CharListreject in interface org.eclipse.collections.api.list.primitive.ImmutableCharListreject in interface org.eclipse.collections.api.ordered.primitive.OrderedCharIterablereject in interface org.eclipse.collections.api.ordered.primitive.ReversibleCharIterablepublic <V> org.eclipse.collections.api.list.ImmutableList<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.ImmutableCharCollectioncollect in interface org.eclipse.collections.api.list.primitive.CharListcollect in interface org.eclipse.collections.api.list.primitive.ImmutableCharListcollect in interface org.eclipse.collections.api.ordered.primitive.OrderedCharIterablecollect in interface org.eclipse.collections.api.ordered.primitive.ReversibleCharIterablepublic CharAdapter collectChar(org.eclipse.collections.api.block.function.primitive.CharToCharFunction function)
public char detectIfNone(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate,
char ifNone)
detectIfNone in interface org.eclipse.collections.api.CharIterablepublic 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 org.eclipse.collections.api.list.primitive.MutableCharList toList()
toList in interface org.eclipse.collections.api.CharIterabletoList in class AbstractCharIterablepublic org.eclipse.collections.api.set.primitive.MutableCharSet toSet()
toSet in interface org.eclipse.collections.api.CharIterabletoSet in class AbstractCharIterablepublic org.eclipse.collections.api.bag.primitive.MutableCharBag toBag()
toBag in interface org.eclipse.collections.api.CharIterabletoBag in class AbstractCharIterablepublic <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 long sum()
sum in interface org.eclipse.collections.api.CharIterablepublic char max()
max in interface org.eclipse.collections.api.CharIterablepublic char min()
min in interface org.eclipse.collections.api.CharIterablepublic int size()
size in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic boolean equals(Object otherList)
Copyright © 2004–2017. All rights reserved.