public class CharAdapter extends AbstractCharIterable implements CharSequence, com.gs.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(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate) |
boolean |
anySatisfy(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
com.gs.collections.api.LazyCharIterable |
asReversed() |
int |
binarySearch(char value) |
char |
charAt(int index) |
com.gs.collections.api.iterator.CharIterator |
charIterator() |
<V> com.gs.collections.api.list.ImmutableList<V> |
collect(com.gs.collections.api.block.function.primitive.CharToObjectFunction<? extends V> function) |
CharAdapter |
collectChar(com.gs.collections.api.block.function.primitive.CharToCharFunction function) |
boolean |
contains(char expected) |
int |
count(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate) |
char |
detectIfNone(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate,
char ifNone) |
CharAdapter |
distinct() |
long |
dotProduct(com.gs.collections.api.list.primitive.CharList list) |
void |
each(com.gs.collections.api.block.procedure.primitive.CharProcedure procedure) |
boolean |
equals(Object otherList) |
void |
forEach(com.gs.collections.api.block.procedure.primitive.CharProcedure procedure) |
void |
forEachWithIndex(com.gs.collections.api.block.procedure.primitive.CharIntProcedure procedure) |
static CharAdapter |
from(char... chars) |
static CharAdapter |
from(com.gs.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,
com.gs.collections.api.block.function.primitive.ObjectCharToObjectFunction<? super T,? extends T> function) |
<T> T |
injectIntoWithIndex(T injectedValue,
com.gs.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(com.gs.collections.api.CharIterable elements) |
CharAdapter |
newWithout(char element) |
CharAdapter |
newWithoutAll(com.gs.collections.api.CharIterable elements) |
boolean |
noneSatisfy(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate) |
CharAdapter |
reject(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate) |
CharAdapter |
select(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate) |
int |
size() |
com.gs.collections.api.list.primitive.ImmutableCharList |
subList(int fromIndex,
int toIndex) |
String |
subSequence(int start,
int end) |
long |
sum() |
char[] |
toArray() |
com.gs.collections.api.bag.primitive.MutableCharBag |
toBag() |
com.gs.collections.api.list.primitive.ImmutableCharList |
toImmutable() |
com.gs.collections.api.list.primitive.MutableCharList |
toList() |
CharAdapter |
toReversed() |
com.gs.collections.api.set.primitive.MutableCharSet |
toSet() |
String |
toString()
The value of toString must be strictly implemented as defined in CharSequence.
|
StringBuilder |
toStringBuilder() |
chars, codePointspublic CharAdapter(String value)
public static CharAdapter adapt(String value)
public static CharAdapter from(char... chars)
public static CharAdapter from(com.gs.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 com.gs.collections.api.PrimitiveIterabletoString in interface CharSequencepublic com.gs.collections.api.iterator.CharIterator charIterator()
charIterator in interface com.gs.collections.api.CharIterablepublic char[] toArray()
toArray in interface com.gs.collections.api.CharIterablepublic boolean contains(char expected)
contains in interface com.gs.collections.api.CharIterablepublic void forEach(com.gs.collections.api.block.procedure.primitive.CharProcedure procedure)
forEach in interface com.gs.collections.api.CharIterablepublic void each(com.gs.collections.api.block.procedure.primitive.CharProcedure procedure)
each in interface com.gs.collections.api.CharIterablepublic CharAdapter distinct()
distinct in interface com.gs.collections.api.list.primitive.CharListdistinct in interface com.gs.collections.api.list.primitive.ImmutableCharListdistinct in interface com.gs.collections.api.ordered.primitive.ReversibleCharIterablepublic CharAdapter newWith(char element)
newWith in interface com.gs.collections.api.collection.primitive.ImmutableCharCollectionnewWith in interface com.gs.collections.api.list.primitive.ImmutableCharListpublic CharAdapter newWithout(char element)
newWithout in interface com.gs.collections.api.collection.primitive.ImmutableCharCollectionnewWithout in interface com.gs.collections.api.list.primitive.ImmutableCharListpublic CharAdapter newWithAll(com.gs.collections.api.CharIterable elements)
newWithAll in interface com.gs.collections.api.collection.primitive.ImmutableCharCollectionnewWithAll in interface com.gs.collections.api.list.primitive.ImmutableCharListpublic CharAdapter newWithoutAll(com.gs.collections.api.CharIterable elements)
newWithoutAll in interface com.gs.collections.api.collection.primitive.ImmutableCharCollectionnewWithoutAll in interface com.gs.collections.api.list.primitive.ImmutableCharListpublic CharAdapter toReversed()
toReversed in interface com.gs.collections.api.list.primitive.CharListtoReversed in interface com.gs.collections.api.list.primitive.ImmutableCharListtoReversed in interface com.gs.collections.api.ordered.primitive.ReversibleCharIterablepublic com.gs.collections.api.list.primitive.ImmutableCharList subList(int fromIndex,
int toIndex)
subList in interface com.gs.collections.api.list.primitive.CharListsubList in interface com.gs.collections.api.list.primitive.ImmutableCharListpublic char get(int index)
get in interface com.gs.collections.api.list.primitive.CharListpublic Character getCharacter(int index)
public long dotProduct(com.gs.collections.api.list.primitive.CharList list)
dotProduct in interface com.gs.collections.api.list.primitive.CharListpublic int binarySearch(char value)
binarySearch in interface com.gs.collections.api.list.primitive.CharListpublic int lastIndexOf(char value)
lastIndexOf in interface com.gs.collections.api.list.primitive.CharListpublic com.gs.collections.api.list.primitive.ImmutableCharList toImmutable()
toImmutable in interface com.gs.collections.api.list.primitive.CharListpublic char getLast()
getLast in interface com.gs.collections.api.ordered.primitive.ReversibleCharIterablepublic com.gs.collections.api.LazyCharIterable asReversed()
asReversed in interface com.gs.collections.api.ordered.primitive.ReversibleCharIterablepublic <T> T injectIntoWithIndex(T injectedValue,
com.gs.collections.api.block.function.primitive.ObjectCharIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface com.gs.collections.api.ordered.primitive.OrderedCharIterableinjectIntoWithIndex in interface com.gs.collections.api.ordered.primitive.ReversibleCharIterablepublic char getFirst()
getFirst in interface com.gs.collections.api.ordered.primitive.OrderedCharIterablepublic int indexOf(char value)
indexOf in interface com.gs.collections.api.ordered.primitive.OrderedCharIterablepublic void forEachWithIndex(com.gs.collections.api.block.procedure.primitive.CharIntProcedure procedure)
forEachWithIndex in interface com.gs.collections.api.ordered.primitive.OrderedCharIterablepublic CharAdapter select(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate)
select in interface com.gs.collections.api.CharIterableselect in interface com.gs.collections.api.collection.primitive.ImmutableCharCollectionselect in interface com.gs.collections.api.list.primitive.CharListselect in interface com.gs.collections.api.list.primitive.ImmutableCharListselect in interface com.gs.collections.api.ordered.primitive.OrderedCharIterableselect in interface com.gs.collections.api.ordered.primitive.ReversibleCharIterablepublic CharAdapter reject(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate)
reject in interface com.gs.collections.api.CharIterablereject in interface com.gs.collections.api.collection.primitive.ImmutableCharCollectionreject in interface com.gs.collections.api.list.primitive.CharListreject in interface com.gs.collections.api.list.primitive.ImmutableCharListreject in interface com.gs.collections.api.ordered.primitive.OrderedCharIterablereject in interface com.gs.collections.api.ordered.primitive.ReversibleCharIterablepublic <V> com.gs.collections.api.list.ImmutableList<V> collect(com.gs.collections.api.block.function.primitive.CharToObjectFunction<? extends V> function)
collect in interface com.gs.collections.api.CharIterablecollect in interface com.gs.collections.api.collection.primitive.ImmutableCharCollectioncollect in interface com.gs.collections.api.list.primitive.CharListcollect in interface com.gs.collections.api.list.primitive.ImmutableCharListcollect in interface com.gs.collections.api.ordered.primitive.OrderedCharIterablecollect in interface com.gs.collections.api.ordered.primitive.ReversibleCharIterablepublic CharAdapter collectChar(com.gs.collections.api.block.function.primitive.CharToCharFunction function)
public char detectIfNone(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate,
char ifNone)
detectIfNone in interface com.gs.collections.api.CharIterablepublic int count(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate)
count in interface com.gs.collections.api.CharIterablepublic boolean anySatisfy(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate)
anySatisfy in interface com.gs.collections.api.CharIterablepublic boolean allSatisfy(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate)
allSatisfy in interface com.gs.collections.api.CharIterablepublic boolean noneSatisfy(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate)
noneSatisfy in interface com.gs.collections.api.CharIterablepublic com.gs.collections.api.list.primitive.MutableCharList toList()
toList in interface com.gs.collections.api.CharIterablepublic com.gs.collections.api.set.primitive.MutableCharSet toSet()
toSet in interface com.gs.collections.api.CharIterablepublic com.gs.collections.api.bag.primitive.MutableCharBag toBag()
toBag in interface com.gs.collections.api.CharIterablepublic <T> T injectInto(T injectedValue,
com.gs.collections.api.block.function.primitive.ObjectCharToObjectFunction<? super T,? extends T> function)
injectInto in interface com.gs.collections.api.CharIterablepublic long sum()
sum in interface com.gs.collections.api.CharIterablepublic char max()
max in interface com.gs.collections.api.CharIterablepublic char min()
min in interface com.gs.collections.api.CharIterablepublic int size()
size in interface com.gs.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface com.gs.collections.api.PrimitiveIterablepublic boolean equals(Object otherList)
equals in interface com.gs.collections.api.list.primitive.CharListpublic int hashCode()
hashCode in interface com.gs.collections.api.list.primitive.CharListCopyright © 2004–2016. All rights reserved.