public class CharAdapter extends AbstractCharIterable implements java.lang.CharSequence, com.gs.collections.api.list.primitive.ImmutableCharList, java.io.Serializable
| Constructor and Description |
|---|
CharAdapter(java.lang.String value) |
| Modifier and Type | Method and Description |
|---|---|
static CharAdapter |
adapt(java.lang.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(java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.String end)
Prints a string representation of this collection onto the given
Appendable. |
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(java.lang.Object otherList)
Follows the same general contract as
List.equals(Object). |
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) |
java.lang.Character |
getCharacter(int index) |
char |
getFirst() |
char |
getLast() |
int |
hashCode()
Follows the same general contract as
List.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()
Returns the number of items in this iterable.
|
com.gs.collections.api.list.primitive.ImmutableCharList |
subList(int fromIndex,
int toIndex) |
java.lang.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()
Returns an immutable copy of this list.
|
com.gs.collections.api.list.primitive.MutableCharList |
toList() |
CharAdapter |
toReversed() |
com.gs.collections.api.set.primitive.MutableCharSet |
toSet() |
java.lang.String |
toString()
The value of toString must be strictly implemented as defined in CharSequence.
|
java.lang.StringBuilder |
toStringBuilder() |
appendString, appendString, asLazy, average, containsAll, containsAll, isEmpty, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, notEmpty, toSortedArray, toSortedListclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static CharAdapter adapt(java.lang.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 java.lang.CharSequencepublic int length()
length in interface java.lang.CharSequencepublic java.lang.String subSequence(int start,
int end)
subSequence in interface java.lang.CharSequencepublic java.lang.StringBuilder toStringBuilder()
public java.lang.String toString()
toString in interface com.gs.collections.api.PrimitiveIterabletoString in interface java.lang.CharSequencetoString in class AbstractCharIterablepublic 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.ImmutableCharListList#subList(int fromIndex, int toIndex)}public char get(int index)
get in interface com.gs.collections.api.list.primitive.CharListpublic java.lang.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()
com.gs.collections.api.list.primitive.CharListtoImmutable 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.CharIterabletoList in class AbstractCharIterablepublic com.gs.collections.api.set.primitive.MutableCharSet toSet()
toSet in interface com.gs.collections.api.CharIterabletoSet in class AbstractCharIterablepublic com.gs.collections.api.bag.primitive.MutableCharBag toBag()
toBag in interface com.gs.collections.api.CharIterabletoBag in class AbstractCharIterablepublic <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()
com.gs.collections.api.PrimitiveIterablesize in interface com.gs.collections.api.PrimitiveIterablepublic void appendString(java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.String end)
com.gs.collections.api.PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String, String, String).appendString in interface com.gs.collections.api.PrimitiveIterablepublic boolean equals(java.lang.Object otherList)
com.gs.collections.api.list.primitive.CharListList.equals(Object).equals in interface com.gs.collections.api.list.primitive.CharListequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.list.primitive.CharListList.hashCode().hashCode in interface com.gs.collections.api.list.primitive.CharListhashCode in class java.lang.Object