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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract VmCollectionabstract VmCollection.Builder<? extends VmCollection> builder()final voidfinal voidprotected static voidcheckPositive(long n) abstract VmCollectionconcatenate(VmCollection other) final booleanendsWith(VmCollection other) final VmCollectionflatten()abstract intabstract booleanisEmpty()abstract booleanbooleanfinal Stringfinal VmListreplaceRange(long start, long exclusiveEnd, VmCollection replacement) final ObjectreplaceRangeOrNull(long start, long exclusiveEnd, VmCollection replacement) final booleanstartsWith(VmCollection other) final StringtoString()final 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, isTypedMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Constructor Details
-
VmCollection
public VmCollection()
-
-
Method Details
-
getLength
public abstract int getLength() -
isEmpty
public abstract boolean isEmpty() -
isSequence
public boolean isSequence()Description copied from class:VmValue- Overrides:
isSequencein classVmValue
-
add
-
concatenate
-
reverseIterator
-
builder
-
checkNonEmpty
public final void checkNonEmpty() -
isLengthOne
public abstract boolean isLengthOne() -
checkLengthOne
public final void checkLengthOne() -
checkPositive
protected static void checkPositive(long n) -
startsWith
-
endsWith
-
replaceRange
-
replaceRangeOrNull
-
flatten
-
zip
-
join
-
toString
-