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(ValueOuterClass.Enum value) |
@NonNull java.lang.String |
getConstructor() |
@NonNull java.util.Optional<Identifier> |
getEnumId() |
int |
hashCode() |
ValueOuterClass.Value |
toProto() |
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(ValueOuterClass.Enum value)
public @NonNull java.util.Optional<Identifier> getEnumId()
public @NonNull java.lang.String getConstructor()
public ValueOuterClass.Value toProto()
public 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