public class DamlOptional extends Value
Constructor and Description |
---|
DamlOptional(java.util.Optional<Value> value) |
Modifier and Type | Method and Description |
---|---|
static DamlOptional |
empty() |
boolean |
equals(java.lang.Object o) |
java.util.Optional<Value> |
getValue() |
int |
hashCode() |
boolean |
isEmpty() |
static DamlOptional |
of(Value value) |
com.digitalasset.ledger.api.v1.ValueOuterClass.Value |
toProto() |
@NonNull java.lang.String |
toString() |
public DamlOptional(java.util.Optional<Value> value)
@Nonnull public java.util.Optional<Value> getValue()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean isEmpty()
public int hashCode()
hashCode
in class java.lang.Object
public @NonNull java.lang.String toString()
toString
in class java.lang.Object
@Nonnull public static DamlOptional of(Value value)
@Nonnull public static DamlOptional empty()