public final class DamlEnum extends Value
Constructor and Description |
---|
DamlEnum(@NonNull Identifier enumId,
@NonNull java.lang.String constructor) |
DamlEnum(@NonNull java.lang.String constructor) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
static DamlEnum |
fromProto(com.digitalasset.ledger.api.v1.ValueOuterClass.Enum value) |
@NonNull java.lang.String |
getConstructor() |
@NonNull java.util.Optional<Identifier> |
getEnumId() |
int |
hashCode() |
com.digitalasset.ledger.api.v1.ValueOuterClass.Value |
toProto() |
com.digitalasset.ledger.api.v1.ValueOuterClass.Enum |
toProtoEnum() |
java.lang.String |
toString() |
public DamlEnum(@NonNull Identifier enumId, @NonNull java.lang.String constructor)
public DamlEnum(@NonNull java.lang.String constructor)
public static DamlEnum fromProto(com.digitalasset.ledger.api.v1.ValueOuterClass.Enum value)
public @NonNull java.util.Optional<Identifier> getEnumId()
public @NonNull java.lang.String getConstructor()
public com.digitalasset.ledger.api.v1.ValueOuterClass.Value toProto()
public com.digitalasset.ledger.api.v1.ValueOuterClass.Enum toProtoEnum()
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