Package com.daml.ledger.javaapi.data
Class Variant
- java.lang.Object
-
- com.daml.ledger.javaapi.data.Value
-
- com.daml.ledger.javaapi.data.Variant
-
public final class Variant extends Value
-
-
Constructor Summary
Constructors Constructor Description Variant(@NonNull Identifier variantId, @NonNull java.lang.String constructor, @NonNull Value value)
Variant(@NonNull java.lang.String constructor, @NonNull Value value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
static Variant
fromProto(ValueOuterClass.Variant variant)
@NonNull java.lang.String
getConstructor()
@NonNull Value
getValue()
@NonNull java.util.Optional<Identifier>
getVariantId()
int
hashCode()
ValueOuterClass.Value
toProto()
ValueOuterClass.Variant
toProtoVariant()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Variant
public Variant(@NonNull Identifier variantId, @NonNull java.lang.String constructor, @NonNull Value value)
-
Variant
public Variant(@NonNull java.lang.String constructor, @NonNull Value value)
-
-
Method Detail
-
fromProto
public static Variant fromProto(ValueOuterClass.Variant variant)
-
getVariantId
public @NonNull java.util.Optional<Identifier> getVariantId()
-
getConstructor
public @NonNull java.lang.String getConstructor()
-
getValue
public @NonNull Value getValue()
-
toProto
public ValueOuterClass.Value toProto()
-
toProtoVariant
public ValueOuterClass.Variant toProtoVariant()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-