public class CodePointAdapter extends AbstractIntIterable implements CharSequence, ImmutableIntList, Serializable
| Constructor and Description |
|---|
CodePointAdapter(String value) |
| Modifier and Type | Method and Description |
|---|---|
static CodePointAdapter |
adapt(String value) |
boolean |
allSatisfy(IntPredicate predicate) |
boolean |
anySatisfy(IntPredicate predicate) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end)
Prints a string representation of this collection onto the given
Appendable. |
LazyIntIterable |
asReversed() |
int |
binarySearch(int value) |
char |
charAt(int index) |
<V> ImmutableList<V> |
collect(IntToObjectFunction<? extends V> function) |
CodePointAdapter |
collectInt(IntToIntFunction function) |
boolean |
contains(int expected) |
int |
count(IntPredicate predicate) |
int |
detectIfNone(IntPredicate predicate,
int ifNone) |
CodePointAdapter |
distinct() |
long |
dotProduct(IntList list) |
void |
each(IntProcedure procedure) |
boolean |
equals(Object otherList)
Follows the same general contract as
List.equals(Object). |
boolean |
equalsIntList(IntList list) |
void |
forEach(IntProcedure procedure) |
void |
forEachWithIndex(IntIntProcedure procedure) |
static CodePointAdapter |
from(int... codePoints) |
static CodePointAdapter |
from(IntIterable iterable) |
int |
get(int index) |
int |
getFirst() |
int |
getLast() |
int |
hashCode()
Follows the same general contract as
List.hashCode(). |
int |
indexOf(int value) |
<T> T |
injectInto(T injectedValue,
ObjectIntToObjectFunction<? super T,? extends T> function) |
<T> T |
injectIntoWithIndex(T injectedValue,
ObjectIntIntToObjectFunction<? super T,? extends T> function) |
IntIterator |
intIterator() |
int |
lastIndexOf(int value) |
int |
length() |
int |
max() |
int |
min() |
CodePointAdapter |
newWith(int element) |
CodePointAdapter |
newWithAll(IntIterable elements) |
CodePointAdapter |
newWithout(int element) |
CodePointAdapter |
newWithoutAll(IntIterable elements) |
boolean |
noneSatisfy(IntPredicate predicate) |
CodePointAdapter |
reject(IntPredicate predicate) |
CodePointAdapter |
select(IntPredicate predicate) |
int |
size()
Returns the number of items in this iterable.
|
ImmutableIntList |
subList(int fromIndex,
int toIndex) |
String |
subSequence(int start,
int end) |
long |
sum() |
int[] |
toArray() |
MutableIntBag |
toBag() |
ImmutableIntList |
toImmutable()
Returns an immutable copy of this list.
|
MutableIntList |
toList() |
CodePointAdapter |
toReversed() |
MutableIntSet |
toSet() |
String |
toString()
Returns a string representation of this PrimitiveIterable.
|
StringBuilder |
toStringBuilder() |
appendString, appendString, asLazy, average, containsAll, containsAll, isEmpty, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, notEmpty, toSortedArray, toSortedListchars, codePointsasLazy, average, containsAll, containsAll, maxIfEmpty, median, minIfEmpty, toSortedArray, toSortedListappendString, appendString, isEmpty, makeString, makeString, makeString, notEmptypublic CodePointAdapter(String value)
public static CodePointAdapter adapt(String value)
public static CodePointAdapter from(int... codePoints)
public static CodePointAdapter from(IntIterable 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()
PrimitiveIterabletoString in interface CharSequencetoString in interface PrimitiveIterabletoString in class AbstractIntIterablepublic IntIterator intIterator()
intIterator in interface IntIterablepublic int[] toArray()
toArray in interface IntIterablepublic boolean contains(int expected)
contains in interface IntIterablepublic void forEach(IntProcedure procedure)
forEach in interface IntIterablepublic void each(IntProcedure procedure)
each in interface IntIterablepublic CodePointAdapter distinct()
distinct in interface ImmutableIntListdistinct in interface IntListdistinct in interface ReversibleIntIterablepublic CodePointAdapter newWith(int element)
newWith in interface ImmutableIntCollectionnewWith in interface ImmutableIntListpublic CodePointAdapter newWithout(int element)
newWithout in interface ImmutableIntCollectionnewWithout in interface ImmutableIntListpublic CodePointAdapter newWithAll(IntIterable elements)
newWithAll in interface ImmutableIntCollectionnewWithAll in interface ImmutableIntListpublic CodePointAdapter newWithoutAll(IntIterable elements)
newWithoutAll in interface ImmutableIntCollectionnewWithoutAll in interface ImmutableIntListpublic CodePointAdapter toReversed()
toReversed in interface ImmutableIntListtoReversed in interface IntListtoReversed in interface ReversibleIntIterablepublic ImmutableIntList subList(int fromIndex, int toIndex)
subList in interface ImmutableIntListsubList in interface IntListList#subList(int fromIndex, int toIndex)}public long dotProduct(IntList list)
dotProduct in interface IntListpublic int binarySearch(int value)
binarySearch in interface IntListpublic int lastIndexOf(int value)
lastIndexOf in interface IntListpublic ImmutableIntList toImmutable()
IntListtoImmutable in interface IntListpublic int getLast()
getLast in interface ReversibleIntIterablepublic LazyIntIterable asReversed()
asReversed in interface ReversibleIntIterablepublic <T> T injectIntoWithIndex(T injectedValue,
ObjectIntIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface OrderedIntIterableinjectIntoWithIndex in interface ReversibleIntIterablepublic int getFirst()
getFirst in interface OrderedIntIterablepublic int indexOf(int value)
indexOf in interface OrderedIntIterablepublic void forEachWithIndex(IntIntProcedure procedure)
forEachWithIndex in interface OrderedIntIterablepublic CodePointAdapter select(IntPredicate predicate)
select in interface ImmutableIntCollectionselect in interface IntIterableselect in interface ImmutableIntListselect in interface IntListselect in interface OrderedIntIterableselect in interface ReversibleIntIterablepublic CodePointAdapter reject(IntPredicate predicate)
reject in interface ImmutableIntCollectionreject in interface IntIterablereject in interface ImmutableIntListreject in interface IntListreject in interface OrderedIntIterablereject in interface ReversibleIntIterablepublic <V> ImmutableList<V> collect(IntToObjectFunction<? extends V> function)
collect in interface ImmutableIntCollectioncollect in interface IntIterablecollect in interface ImmutableIntListcollect in interface IntListcollect in interface OrderedIntIterablecollect in interface ReversibleIntIterablepublic CodePointAdapter collectInt(IntToIntFunction function)
public int detectIfNone(IntPredicate predicate, int ifNone)
detectIfNone in interface IntIterablepublic int count(IntPredicate predicate)
count in interface IntIterablepublic boolean anySatisfy(IntPredicate predicate)
anySatisfy in interface IntIterablepublic boolean allSatisfy(IntPredicate predicate)
allSatisfy in interface IntIterablepublic boolean noneSatisfy(IntPredicate predicate)
noneSatisfy in interface IntIterablepublic MutableIntList toList()
toList in interface IntIterabletoList in class AbstractIntIterablepublic MutableIntSet toSet()
toSet in interface IntIterabletoSet in class AbstractIntIterablepublic MutableIntBag toBag()
toBag in interface IntIterabletoBag in class AbstractIntIterablepublic <T> T injectInto(T injectedValue,
ObjectIntToObjectFunction<? super T,? extends T> function)
injectInto in interface IntIterablepublic long sum()
sum in interface IntIterablepublic int max()
max in interface IntIterablepublic int min()
min in interface IntIterablepublic int size()
PrimitiveIterablesize in interface PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String, String, String).appendString in interface PrimitiveIterablepublic boolean equals(Object otherList)
IntListList.equals(Object).public boolean equalsIntList(IntList list)
Copyright © 2004–2016. All rights reserved.