Package org.pkl.core.runtime
Class VmCollection
- java.lang.Object
-
- org.pkl.core.runtime.VmValue
-
- org.pkl.core.runtime.VmCollection
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceVmCollection.Builder<T extends VmCollection>
-
Constructor Summary
Constructors Constructor Description VmCollection()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract VmCollectionadd(java.lang.Object element)abstract VmCollection.Builder<? extends VmCollection>builder()voidcheckLengthOne()voidcheckNonEmpty()protected static voidcheckPositive(long n)abstract VmCollectionconcatenate(VmCollection other)booleanendsWith(VmCollection other)VmCollectionflatten()abstract intgetLength()abstract booleanisEmpty()abstract booleanisLengthOne()booleanisSequence()java.lang.Stringjoin(java.lang.String separator)VmListreplaceRange(long start, long exclusiveEnd, VmCollection replacement)java.lang.ObjectreplaceRangeOrNull(long start, long exclusiveEnd, VmCollection replacement)abstract java.util.Iterator<java.lang.Object>reverseIterator()booleanstartsWith(VmCollection other)java.lang.StringtoString()VmCollectionzip(VmCollection other)-
Methods inherited from class org.pkl.core.runtime.VmValue
accept, accept, equals, export, export, exportNullable, force, force, getPrototype, getVmClass, isDynamic, isListing, isMapping, isPrototype, isTyped
-
-
-
-
Method Detail
-
getLength
public abstract int getLength()
-
isEmpty
public abstract boolean isEmpty()
-
isSequence
public boolean isSequence()
Description copied from class:VmValue- Overrides:
isSequencein classVmValue
-
add
public abstract VmCollection add(java.lang.Object element)
-
concatenate
public abstract VmCollection concatenate(VmCollection other)
-
reverseIterator
public abstract java.util.Iterator<java.lang.Object> reverseIterator()
-
builder
public abstract VmCollection.Builder<? extends VmCollection> builder()
-
checkNonEmpty
public final void checkNonEmpty()
-
isLengthOne
public abstract boolean isLengthOne()
-
checkLengthOne
public final void checkLengthOne()
-
checkPositive
protected static void checkPositive(long n)
-
startsWith
public final boolean startsWith(VmCollection other)
-
endsWith
public final boolean endsWith(VmCollection other)
-
replaceRange
public final VmList replaceRange(long start, long exclusiveEnd, VmCollection replacement)
-
replaceRangeOrNull
public final java.lang.Object replaceRangeOrNull(long start, long exclusiveEnd, VmCollection replacement)
-
flatten
public final VmCollection flatten()
-
zip
public final VmCollection zip(VmCollection other)
-
join
public final java.lang.String join(java.lang.String separator)
-
toString
public final java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-