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