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, toSortedList
chars, codePoints
asLazy, average, containsAll, containsAll, maxIfEmpty, median, minIfEmpty, toSortedArray, toSortedList
appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty
public 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 CharSequence
public int length()
length
in interface CharSequence
public String subSequence(int start, int end)
subSequence
in interface CharSequence
public StringBuilder toStringBuilder()
public String toString()
PrimitiveIterable
toString
in interface CharSequence
toString
in interface PrimitiveIterable
toString
in class AbstractIntIterable
public IntIterator intIterator()
intIterator
in interface IntIterable
public int[] toArray()
toArray
in interface IntIterable
public boolean contains(int expected)
contains
in interface IntIterable
public void forEach(IntProcedure procedure)
forEach
in interface IntIterable
public void each(IntProcedure procedure)
each
in interface IntIterable
public CodePointAdapter distinct()
distinct
in interface ImmutableIntList
distinct
in interface IntList
distinct
in interface ReversibleIntIterable
public CodePointAdapter newWith(int element)
newWith
in interface ImmutableIntCollection
newWith
in interface ImmutableIntList
public CodePointAdapter newWithout(int element)
newWithout
in interface ImmutableIntCollection
newWithout
in interface ImmutableIntList
public CodePointAdapter newWithAll(IntIterable elements)
newWithAll
in interface ImmutableIntCollection
newWithAll
in interface ImmutableIntList
public CodePointAdapter newWithoutAll(IntIterable elements)
newWithoutAll
in interface ImmutableIntCollection
newWithoutAll
in interface ImmutableIntList
public CodePointAdapter toReversed()
toReversed
in interface ImmutableIntList
toReversed
in interface IntList
toReversed
in interface ReversibleIntIterable
public ImmutableIntList subList(int fromIndex, int toIndex)
subList
in interface ImmutableIntList
subList
in interface IntList
List#subList(int fromIndex, int toIndex)}
public long dotProduct(IntList list)
dotProduct
in interface IntList
public int binarySearch(int value)
binarySearch
in interface IntList
public int lastIndexOf(int value)
lastIndexOf
in interface IntList
public ImmutableIntList toImmutable()
IntList
toImmutable
in interface IntList
public int getLast()
getLast
in interface ReversibleIntIterable
public LazyIntIterable asReversed()
asReversed
in interface ReversibleIntIterable
public <T> T injectIntoWithIndex(T injectedValue, ObjectIntIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex
in interface OrderedIntIterable
injectIntoWithIndex
in interface ReversibleIntIterable
public int getFirst()
getFirst
in interface OrderedIntIterable
public int indexOf(int value)
indexOf
in interface OrderedIntIterable
public void forEachWithIndex(IntIntProcedure procedure)
forEachWithIndex
in interface OrderedIntIterable
public CodePointAdapter select(IntPredicate predicate)
select
in interface ImmutableIntCollection
select
in interface IntIterable
select
in interface ImmutableIntList
select
in interface IntList
select
in interface OrderedIntIterable
select
in interface ReversibleIntIterable
public CodePointAdapter reject(IntPredicate predicate)
reject
in interface ImmutableIntCollection
reject
in interface IntIterable
reject
in interface ImmutableIntList
reject
in interface IntList
reject
in interface OrderedIntIterable
reject
in interface ReversibleIntIterable
public <V> ImmutableList<V> collect(IntToObjectFunction<? extends V> function)
collect
in interface ImmutableIntCollection
collect
in interface IntIterable
collect
in interface ImmutableIntList
collect
in interface IntList
collect
in interface OrderedIntIterable
collect
in interface ReversibleIntIterable
public CodePointAdapter collectInt(IntToIntFunction function)
public int detectIfNone(IntPredicate predicate, int ifNone)
detectIfNone
in interface IntIterable
public int count(IntPredicate predicate)
count
in interface IntIterable
public boolean anySatisfy(IntPredicate predicate)
anySatisfy
in interface IntIterable
public boolean allSatisfy(IntPredicate predicate)
allSatisfy
in interface IntIterable
public boolean noneSatisfy(IntPredicate predicate)
noneSatisfy
in interface IntIterable
public MutableIntList toList()
toList
in interface IntIterable
toList
in class AbstractIntIterable
public MutableIntSet toSet()
toSet
in interface IntIterable
toSet
in class AbstractIntIterable
public MutableIntBag toBag()
toBag
in interface IntIterable
toBag
in class AbstractIntIterable
public <T> T injectInto(T injectedValue, ObjectIntToObjectFunction<? super T,? extends T> function)
injectInto
in interface IntIterable
public long sum()
sum
in interface IntIterable
public int max()
max
in interface IntIterable
public int min()
min
in interface IntIterable
public int size()
PrimitiveIterable
size
in interface PrimitiveIterable
public void appendString(Appendable appendable, String start, String separator, String end)
PrimitiveIterable
Appendable
. Prints the string returned
by PrimitiveIterable.makeString(String, String, String)
.appendString
in interface PrimitiveIterable
public boolean equals(Object otherList)
IntList
List.equals(Object)
.public boolean equalsIntList(IntList list)
Copyright © 2004–2016. All rights reserved.