public class CodePointList extends AbstractIntIterable implements CharSequence, ImmutableIntList, Serializable
Constructor and Description |
---|
CodePointList(String value) |
Modifier and Type | Method and Description |
---|---|
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) |
CodePointList |
collectInt(IntToIntFunction function) |
boolean |
contains(int expected) |
int |
count(IntPredicate predicate) |
int |
detectIfNone(IntPredicate predicate,
int ifNone) |
CodePointList |
distinct() |
long |
dotProduct(IntList list) |
void |
each(IntProcedure procedure) |
boolean |
equals(Object otherList)
Follows the same general contract as
List.equals(Object) . |
void |
forEach(IntProcedure procedure) |
void |
forEachWithIndex(IntIntProcedure procedure) |
static CodePointList |
from(int... codePoints) |
static CodePointList |
from(IntIterable iterable) |
static CodePointList |
from(String value) |
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() |
CodePointList |
newWith(int element) |
CodePointList |
newWithAll(IntIterable elements) |
CodePointList |
newWithout(int element) |
CodePointList |
newWithoutAll(IntIterable elements) |
boolean |
noneSatisfy(IntPredicate predicate) |
CodePointList |
reject(IntPredicate predicate) |
CodePointList |
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() |
CodePointList |
toReversed() |
MutableIntSet |
toSet() |
String |
toString()
The value of toString must be strictly implemented as defined in CharSequence.
|
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 CodePointList(String value)
public static CodePointList from(String value)
public static CodePointList from(int... codePoints)
public static CodePointList from(IntIterable iterable)
public StringBuilder toStringBuilder()
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 String toString()
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 CodePointList distinct()
distinct
in interface ImmutableIntList
distinct
in interface IntList
distinct
in interface ReversibleIntIterable
public CodePointList newWith(int element)
newWith
in interface ImmutableIntCollection
newWith
in interface ImmutableIntList
public CodePointList newWithout(int element)
newWithout
in interface ImmutableIntCollection
newWithout
in interface ImmutableIntList
public CodePointList newWithAll(IntIterable elements)
newWithAll
in interface ImmutableIntCollection
newWithAll
in interface ImmutableIntList
public CodePointList newWithoutAll(IntIterable elements)
newWithoutAll
in interface ImmutableIntCollection
newWithoutAll
in interface ImmutableIntList
public CodePointList 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 CodePointList 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 CodePointList 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 CodePointList 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)
.Copyright © 2004–2016. All rights reserved.