public final class Variant extends Value
Constructor and Description |
---|
Variant(@NonNull Identifier variantId,
@NonNull java.lang.String constructor,
@NonNull Value value) |
Variant(@NonNull java.lang.String constructor,
@NonNull Value value) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
static Variant |
fromProto(com.digitalasset.ledger.api.v1.ValueOuterClass.Variant variant) |
@NonNull java.lang.String |
getConstructor() |
@NonNull Value |
getValue() |
@NonNull java.util.Optional<Identifier> |
getVariantId() |
int |
hashCode() |
com.digitalasset.ledger.api.v1.ValueOuterClass.Value |
toProto() |
com.digitalasset.ledger.api.v1.ValueOuterClass.Variant |
toProtoVariant() |
java.lang.String |
toString() |
public Variant(@NonNull Identifier variantId, @NonNull java.lang.String constructor, @NonNull Value value)
public Variant(@NonNull java.lang.String constructor, @NonNull Value value)
public static Variant fromProto(com.digitalasset.ledger.api.v1.ValueOuterClass.Variant variant)
public @NonNull java.util.Optional<Identifier> getVariantId()
public @NonNull java.lang.String getConstructor()
public @NonNull Value getValue()
public com.digitalasset.ledger.api.v1.ValueOuterClass.Value toProto()
public com.digitalasset.ledger.api.v1.ValueOuterClass.Variant toProtoVariant()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object