Package com.daml.ledger.javaapi.data
Class DamlEnum
- java.lang.Object
-
- com.daml.ledger.javaapi.data.Value
-
- com.daml.ledger.javaapi.data.DamlEnum
-
public final class DamlEnum extends Value
-
-
Constructor Summary
Constructors Constructor Description DamlEnum(@NonNull Identifier enumId, @NonNull java.lang.String constructor)
DamlEnum(@NonNull java.lang.String constructor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
static DamlEnum
fromProto(com.daml.ledger.api.v1.ValueOuterClass.Enum value)
@NonNull java.lang.String
getConstructor()
@NonNull java.util.Optional<Identifier>
getEnumId()
int
hashCode()
com.daml.ledger.api.v1.ValueOuterClass.Value
toProto()
com.daml.ledger.api.v1.ValueOuterClass.Enum
toProtoEnum()
java.lang.String
toString()
-
-
-
Constructor Detail
-
DamlEnum
public DamlEnum(@NonNull Identifier enumId, @NonNull java.lang.String constructor)
-
DamlEnum
public DamlEnum(@NonNull java.lang.String constructor)
-
-
Method Detail
-
fromProto
public static DamlEnum fromProto(com.daml.ledger.api.v1.ValueOuterClass.Enum value)
-
getEnumId
public @NonNull java.util.Optional<Identifier> getEnumId()
-
getConstructor
public @NonNull java.lang.String getConstructor()
-
toProto
public com.daml.ledger.api.v1.ValueOuterClass.Value toProto()
-
toProtoEnum
public com.daml.ledger.api.v1.ValueOuterClass.Enum toProtoEnum()
-
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
-
-