Package org.pkl.core.runtime
Class VmDuration
java.lang.Object
org.pkl.core.runtime.VmValue
org.pkl.core.runtime.VmDuration
- All Implemented Interfaces:
Comparable<VmDuration>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(VmValueConverter<T> converter, Iterable<Object> path) voidaccept(VmValueVisitor visitor) add(VmDuration other) intcompareTo(VmDuration other) convertTo(DurationUnit unit) divide(double num) doubledivide(VmDuration other) booleanEnables calling `vmValue.equals()` when not behind a Truffle boundary.export()voidforce(boolean allowUndefinedValues) Forces recursive (deep) evaluation of this value.getUnit()doublegetValue()doublegetValue(DurationUnit other) inthashCode()multiply(double num) pow(double num) remainder(double num) round()subtract(VmDuration other) toString()static @Nullable DurationUnittoUnit(Identifier identifier) Methods inherited from class org.pkl.core.runtime.VmValue
export, exportNullable, force, getPrototype, isDynamic, isListing, isMapping, isPrototype, isSequence, isTyped
-
Constructor Details
-
VmDuration
-
-
Method Details
-
toUnit
-
getVmClass
- Specified by:
getVmClassin classVmValue
-
add
-
subtract
-
getValue
public double getValue() -
getValue
-
getUnit
-
multiply
-
divide
-
divide
-
remainder
-
pow
-
round
-
convertTo
-
force
public void force(boolean allowUndefinedValues) Description copied from class:VmValueForces recursive (deep) evaluation of this value. -
export
-
accept
-
accept
-
compareTo
- Specified by:
compareToin interfaceComparable<VmDuration>
-
equals
Description copied from class:VmValueEnables calling `vmValue.equals()` when not behind a Truffle boundary. -
hashCode
public int hashCode() -
toString
-