Class Variant<T>
- java.lang.Object
-
- com.daml.ledger.javaapi.data.codegen.Variant<T>
-
- Type Parameters:
T
- A "self type", some subclass of this class thatT
implements.
- All Implemented Interfaces:
DefinedDataType<T>
public abstract class Variant<T> extends java.lang.Object implements DefinedDataType<T>
-
-
Constructor Summary
Constructors Constructor Description Variant()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract Variant
toValue()
Produce the encoded form.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.daml.ledger.javaapi.data.codegen.DefinedDataType
jsonEncoder, toJson
-
-
-
-
Method Detail
-
toValue
public abstract Variant toValue()
Description copied from interface:DefinedDataType
Produce the encoded form.- Specified by:
toValue
in interfaceDefinedDataType<T>
-
-