java.io.Serializable, java.lang.CharSequence, ImmutableIntCollection, IntIterable, ImmutableIntList, IntList, OrderedIntIterable, ReversibleIntIterable, PrimitiveIterablepublic class CodePointList extends AbstractIntIterable implements java.lang.CharSequence, ImmutableIntList, java.io.Serializable
| Constructor | Description |
|---|---|
CodePointList(java.lang.String value) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
allSatisfy(IntPredicate predicate) |
Returns true if all of the elements in the IntIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
anySatisfy(IntPredicate predicate) |
Returns true if any of the elements in the IntIterable return true for the
specified predicate, otherwise returns false.
|
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. |
LazyIntIterable |
asReversed() |
|
int |
binarySearch(int value) |
|
char |
charAt(int index) |
|
RichIterable<IntIterable> |
chunk(int size) |
Partitions elements in fixed size chunks.
|
<V> ImmutableList<V> |
collect(IntToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
CodePointList |
collectInt(IntToIntFunction function) |
|
boolean |
contains(int expected) |
Returns true if the value is contained in the IntIterable, and false if it is not.
|
int |
count(IntPredicate predicate) |
Returns a count of the number of elements in the IntIterable that return true for the
specified predicate.
|
int |
detectIfNone(IntPredicate predicate,
int ifNone) |
|
CodePointList |
distinct() |
|
long |
dotProduct(IntList list) |
|
void |
each(IntProcedure procedure) |
A synonym for forEach.
|
boolean |
equals(java.lang.Object otherList) |
Follows the same general contract as
List.equals(Object). |
void |
forEach(IntProcedure procedure) |
Applies the IntProcedure to each element in the IntIterable.
|
void |
forEachWithIndex(IntIntProcedure procedure) |
|
static CodePointList |
from(int... codePoints) |
|
static CodePointList |
from(java.lang.String value) |
|
static CodePointList |
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() |
Returns a primitive iterator that can be used to iterate over the IntIterable in an
imperative style.
|
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) |
Returns true if none of the elements in the IntIterable return true for the
specified predicate, otherwise returns false.
|
CodePointList |
reject(IntPredicate predicate) |
Returns a new IntIterable with all of the elements in the IntIterable that
return false for the specified predicate.
|
CodePointList |
select(IntPredicate predicate) |
Returns a new IntIterable with all of the elements in the IntIterable that
return true for the specified predicate.
|
int |
size() |
Returns the number of items in this iterable.
|
ImmutableIntList |
subList(int fromIndex,
int toIndex) |
|
java.lang.String |
subSequence(int start,
int end) |
|
long |
sum() |
|
int[] |
toArray() |
Converts the IntIterable to a primitive int array.
|
MutableIntBag |
toBag() |
Converts the IntIterable to a new MutableIntBag.
|
ImmutableIntList |
toImmutable() |
Returns an immutable copy of this list.
|
MutableIntList |
toList() |
Converts the IntIterable to a new MutableIntList.
|
CodePointList |
toReversed() |
|
MutableIntSet |
toSet() |
Converts the IntIterable to a new MutableIntSet.
|
java.lang.String |
toString() |
The value of toString must be strictly implemented as defined in CharSequence.
|
java.lang.StringBuilder |
toStringBuilder() |
|
<T> ImmutableList<IntObjectPair<T>> |
zip(java.lang.Iterable<T> iterable) |
Returns an
ImmutableList formed from this ImmutableIntList and a ListIterable by
combining corresponding elements in pairs. |
ImmutableList<IntIntPair> |
zipInt(IntIterable iterable) |
Returns an
ImmutableList formed from this ImmutableIntList and another IntList by
combining corresponding elements in pairs. |
asLazy, average, containsAll, containsAll, maxIfEmpty, median, minIfEmpty, toSortedArray, toSortedListcollectWithIndex, tapasLazy, average, averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAll, containsAll, flatCollect, maxIfEmpty, median, medianIfEmpty, minIfEmpty, reject, select, summaryStatistics, toSortedArray, toSortedListcollectWithIndexappendString, appendString, isEmpty, makeString, makeString, makeString, notEmptypublic static CodePointList from(java.lang.String value)
public static CodePointList from(int... codePoints)
public static CodePointList from(IntIterable iterable)
public java.lang.StringBuilder toStringBuilder()
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.String toString()
toString in interface java.lang.CharSequencetoString in interface PrimitiveIterabletoString in class AbstractIntIterableAbstractCollection.toString()public IntIterator intIterator()
IntIterableintIterator in interface IntIterablepublic int[] toArray()
IntIterabletoArray in interface IntIterablepublic boolean contains(int expected)
IntIterablecontains in interface IntIterablepublic void forEach(IntProcedure procedure)
IntIterableforEach in interface IntIterablepublic void each(IntProcedure procedure)
IntIterableeach in interface IntIterablepublic CodePointList distinct()
distinct in interface ImmutableIntListdistinct in interface IntListdistinct in interface ReversibleIntIterablepublic CodePointList newWith(int element)
newWith in interface ImmutableIntCollectionnewWith in interface ImmutableIntListpublic CodePointList newWithout(int element)
newWithout in interface ImmutableIntCollectionnewWithout in interface ImmutableIntListpublic CodePointList newWithAll(IntIterable elements)
newWithAll in interface ImmutableIntCollectionnewWithAll in interface ImmutableIntListpublic CodePointList newWithoutAll(IntIterable elements)
newWithoutAll in interface ImmutableIntCollectionnewWithoutAll in interface ImmutableIntListpublic CodePointList 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 CodePointList select(IntPredicate predicate)
IntIterableselect in interface ImmutableIntCollectionselect in interface ImmutableIntListselect in interface IntIterableselect in interface IntListselect in interface OrderedIntIterableselect in interface ReversibleIntIterablepublic CodePointList reject(IntPredicate predicate)
IntIterablereject in interface ImmutableIntCollectionreject in interface ImmutableIntListreject in interface IntIterablereject in interface IntListreject in interface OrderedIntIterablereject in interface ReversibleIntIterablepublic <V> ImmutableList<V> collect(IntToObjectFunction<? extends V> function)
IntIterablecollect in interface ImmutableIntCollectioncollect in interface ImmutableIntListcollect in interface IntIterablecollect in interface IntListcollect in interface OrderedIntIterablecollect in interface ReversibleIntIterablepublic CodePointList collectInt(IntToIntFunction function)
public int detectIfNone(IntPredicate predicate, int ifNone)
detectIfNone in interface IntIterablepublic int count(IntPredicate predicate)
IntIterablecount in interface IntIterablepublic boolean anySatisfy(IntPredicate predicate)
IntIterableanySatisfy in interface IntIterablepublic boolean allSatisfy(IntPredicate predicate)
IntIterableallSatisfy in interface IntIterablepublic boolean noneSatisfy(IntPredicate predicate)
IntIterablenoneSatisfy in interface IntIterablepublic MutableIntList toList()
IntIterabletoList in interface IntIterabletoList in class AbstractIntIterablepublic MutableIntSet toSet()
IntIterabletoSet in interface IntIterabletoSet in class AbstractIntIterablepublic MutableIntBag toBag()
IntIterabletoBag in interface IntIterabletoBag in class AbstractIntIterablepublic <T> T injectInto(T injectedValue,
ObjectIntToObjectFunction<? super T,? extends T> function)
injectInto in interface IntIterablepublic RichIterable<IntIterable> chunk(int size)
IntIterablechunk in interface IntIterablesize - the number of elements per chunkRichIterable containing IntIterables of size size, except the last will be
truncated if the elements don't divide evenly.public 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(java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.String end)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String, String, String).appendString in interface PrimitiveIterablepublic boolean equals(java.lang.Object otherList)
IntListList.equals(Object).public int hashCode()
IntListList.hashCode().public ImmutableList<IntIntPair> zipInt(IntIterable iterable)
ImmutableIntListImmutableList formed from this ImmutableIntList and another IntList by
combining corresponding elements in pairs. If one of the two IntLists is longer than the other, its
remaining elements are ignored.zipInt in interface ImmutableIntListzipInt in interface IntListpublic <T> ImmutableList<IntObjectPair<T>> zip(java.lang.Iterable<T> iterable)
ImmutableIntListImmutableList formed from this ImmutableIntList and a ListIterable by
combining corresponding elements in pairs. If one of the two Lists is longer than the other, its
remaining elements are ignored.zip in interface ImmutableIntListzip in interface IntListCopyright © 2004–2018. All rights reserved.