public class CharAdapter extends AbstractCharIterable implements CharSequence, ImmutableCharList, Serializable
| Constructor and Description |
|---|
CharAdapter(String value) |
asLazy, average, maxIfEmpty, median, minIfEmpty, toSortedArray, toSortedListchars, codePointscollectWithIndex, rejectWithIndex, selectWithIndex, tapforEachInBothcollectWithIndex, rejectWithIndex, selectWithIndexasLazy, average, averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, maxIfEmpty, median, medianIfEmpty, minIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByappendString, appendString, makeString, makeString, makeString, notEmptypublic CharAdapter(String value)
public static CharAdapter adapt(String value)
public static CharAdapter from(char... chars)
public static CharAdapter from(CharIterable iterable)
public char charAt(int index)
charAt in interface CharSequencepublic int length()
length in interface CharSequencepublic boolean isEmpty()
isEmpty in interface PrimitiveIterablepublic String subSequence(int start, int end)
subSequence in interface CharSequencepublic StringBuilder toStringBuilder()
public String toString()
toString in interface CharSequencetoString in interface PrimitiveIterabletoString in class AbstractCharIterablepublic CharIterator charIterator()
charIterator in interface CharIterablepublic char[] toArray()
toArray in interface CharIterablepublic char[] toArray(char[] target)
toArray in interface CharIterablepublic boolean contains(char expected)
contains in interface CharIterablepublic void each(CharProcedure procedure)
each in interface CharIterablepublic CharAdapter distinct()
distinct in interface CharListdistinct in interface ImmutableCharListdistinct in interface ReversibleCharIterablepublic CharAdapter newWith(char element)
newWith in interface ImmutableCharCollectionnewWith in interface ImmutableCharListpublic CharAdapter newWithout(char element)
newWithout in interface ImmutableCharCollectionnewWithout in interface ImmutableCharListpublic CharAdapter newWithAll(CharIterable elements)
newWithAll in interface ImmutableCharCollectionnewWithAll in interface ImmutableCharListpublic CharAdapter newWithoutAll(CharIterable elements)
newWithoutAll in interface ImmutableCharCollectionnewWithoutAll in interface ImmutableCharListpublic CharAdapter toReversed()
toReversed in interface CharListtoReversed in interface ImmutableCharListtoReversed in interface ReversibleCharIterablepublic ImmutableCharList subList(int fromIndex, int toIndex)
subList in interface CharListsubList in interface ImmutableCharListpublic Character getCharacter(int index)
public long dotProduct(CharList list)
dotProduct in interface CharListpublic int binarySearch(char value)
binarySearch in interface CharListpublic int lastIndexOf(char value)
lastIndexOf in interface CharListpublic ImmutableCharList toImmutable()
toImmutable in interface CharListpublic char getLast()
getLast in interface ReversibleCharIterablepublic LazyCharIterable asReversed()
asReversed in interface ReversibleCharIterablepublic <T> T injectIntoWithIndex(T injectedValue,
ObjectCharIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface OrderedCharIterableinjectIntoWithIndex in interface ReversibleCharIterablepublic char getFirst()
getFirst in interface OrderedCharIterablepublic int indexOf(char value)
indexOf in interface OrderedCharIterablepublic void forEachWithIndex(CharIntProcedure procedure)
forEachWithIndex in interface OrderedCharIterablepublic CharAdapter select(CharPredicate predicate)
select in interface CharIterableselect in interface ImmutableCharCollectionselect in interface CharListselect in interface ImmutableCharListselect in interface OrderedCharIterableselect in interface ReversibleCharIterablepublic CharAdapter reject(CharPredicate predicate)
reject in interface CharIterablereject in interface ImmutableCharCollectionreject in interface CharListreject in interface ImmutableCharListreject in interface OrderedCharIterablereject in interface ReversibleCharIterablepublic <V> ImmutableList<V> collect(CharToObjectFunction<? extends V> function)
collect in interface CharIterablecollect in interface ImmutableCharCollectioncollect in interface CharListcollect in interface ImmutableCharListcollect in interface OrderedCharIterablecollect in interface ReversibleCharIterablepublic CharAdapter collectChar(CharToCharFunction function)
public char detectIfNone(CharPredicate predicate, char ifNone)
detectIfNone in interface CharIterablepublic int count(CharPredicate predicate)
count in interface CharIterablepublic boolean anySatisfy(CharPredicate predicate)
anySatisfy in interface CharIterablepublic boolean allSatisfy(CharPredicate predicate)
allSatisfy in interface CharIterablepublic boolean noneSatisfy(CharPredicate predicate)
noneSatisfy in interface CharIterablepublic MutableCharList toList()
toList in interface CharIterabletoList in class AbstractCharIterablepublic MutableCharSet toSet()
toSet in interface CharIterabletoSet in class AbstractCharIterablepublic MutableCharBag toBag()
toBag in interface CharIterabletoBag in class AbstractCharIterablepublic <T> T injectInto(T injectedValue,
ObjectCharToObjectFunction<? super T,? extends T> function)
injectInto in interface CharIterablepublic RichIterable<CharIterable> chunk(int size)
chunk in interface CharIterablepublic long sum()
sum in interface CharIterablepublic char max()
max in interface CharIterablepublic char min()
min in interface CharIterablepublic int size()
size in interface PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface PrimitiveIterablepublic boolean equals(Object otherList)
public int hashCode()
public ImmutableList<CharCharPair> zipChar(CharIterable iterable)
zipChar in interface CharListzipChar in interface ImmutableCharListpublic <T> ImmutableList<CharObjectPair<T>> zip(Iterable<T> iterable)
zip in interface CharListzip in interface ImmutableCharListCopyright © 2004–2022. All rights reserved.