public final class DamlOptional extends Value
Modifier and Type | Field and Description |
---|---|
static DamlOptional |
EMPTY |
Constructor and Description |
---|
DamlOptional(java.util.Optional<Value> value)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static @NonNull DamlOptional |
empty()
Deprecated.
|
boolean |
equals(java.lang.Object o) |
static DamlOptional |
fromProto(ValueOuterClass.Optional optional) |
java.util.Optional<Value> |
getValue() |
int |
hashCode() |
boolean |
isEmpty() |
static DamlOptional |
of(@NonNull java.util.Optional<Value> value) |
static DamlOptional |
of(Value value) |
<V> @NonNull java.util.Optional<V> |
toOptional(java.util.function.Function<Value,V> valueMapper) |
ValueOuterClass.Value |
toProto() |
@NonNull java.lang.String |
toString() |
public static DamlOptional EMPTY
@Deprecated public DamlOptional(java.util.Optional<Value> value)
public static DamlOptional of(@NonNull java.util.Optional<Value> value)
public static DamlOptional of(Value value)
public java.util.Optional<Value> getValue()
public <V> @NonNull java.util.Optional<V> toOptional(java.util.function.Function<Value,V> valueMapper)
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
@Deprecated public static @NonNull DamlOptional empty()
public ValueOuterClass.Value toProto()
public static DamlOptional fromProto(ValueOuterClass.Optional optional)