public class Sequences
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Sequences.CharacterIterator
Iterator subclass to iterate of CharSequences.
|
Constructor and Description |
---|
Sequences() |
Modifier and Type | Method and Description |
---|---|
static GVector |
asGVector(java.lang.Object value) |
static GVector |
asGVectorOrNull(java.lang.Object value) |
static IntSequence |
asIntSequenceOrNull(java.lang.Object value) |
static java.util.List |
asSequenceOrNull(java.lang.Object value) |
static java.util.List |
coerceToSequence(java.lang.Object value) |
static SimpleVector |
copy(java.util.List base,
Range.IntRange range,
boolean writable) |
static SimpleVector |
copy(SimpleVector base,
int start,
int end,
boolean writable) |
static boolean |
copyInPlaceIsSafe(java.lang.Object src,
java.lang.Object dst) |
static SimpleVector |
copySimple(SimpleVector base,
int start,
int end,
boolean writable)
Do a logical substring operation with sharing.
|
static java.lang.Object |
drop(java.lang.Object base,
int count) |
static java.lang.Object |
drop(java.lang.Object base,
int fromStart,
int fromEnd) |
static java.lang.Object |
getAt(java.util.List seq,
int index) |
static java.util.Iterator |
getIterator(java.lang.Object object)
Get an Iterator for a "sequence-like" object.
|
static int |
getSize(java.lang.Object values) |
static java.util.List |
indirectIndexed(java.util.List lst,
IntSequence indexes) |
static void |
replace(java.util.List lst,
int fromStart,
int fromEnd,
java.util.List values) |
static java.lang.Object |
subList(java.lang.Object base,
int fromIndex,
int toIndex) |
static void |
writeUInt(int value,
Consumer out) |
static void |
writeULong(long value,
Consumer out) |
public static GVector asGVectorOrNull(java.lang.Object value)
public static GVector asGVector(java.lang.Object value)
public static java.util.List asSequenceOrNull(java.lang.Object value)
public static IntSequence asIntSequenceOrNull(java.lang.Object value)
public static java.util.List coerceToSequence(java.lang.Object value)
public static java.lang.Object getAt(java.util.List seq, int index)
public static int getSize(java.lang.Object values)
public static java.util.Iterator getIterator(java.lang.Object object)
public static java.lang.Object subList(java.lang.Object base, int fromIndex, int toIndex)
public static java.util.List indirectIndexed(java.util.List lst, IntSequence indexes)
public static java.lang.Object drop(java.lang.Object base, int count)
public static java.lang.Object drop(java.lang.Object base, int fromStart, int fromEnd)
public static SimpleVector copySimple(SimpleVector base, int start, int end, boolean writable)
public static SimpleVector copy(SimpleVector base, int start, int end, boolean writable)
public static SimpleVector copy(java.util.List base, Range.IntRange range, boolean writable)
public static boolean copyInPlaceIsSafe(java.lang.Object src, java.lang.Object dst)
public static void replace(java.util.List lst, int fromStart, int fromEnd, java.util.List values)
public static void writeUInt(int value, Consumer out)
public static void writeULong(long value, Consumer out)