Package com.daml.ledger.javaapi.data
Class DamlOptional
- java.lang.Object
-
- com.daml.ledger.javaapi.data.Value
-
- com.daml.ledger.javaapi.data.DamlOptional
-
public final class DamlOptional extends Value
-
-
Field Summary
Fields Modifier and Type Field Description static DamlOptional
EMPTY
-
Constructor Summary
Constructors Constructor Description DamlOptional(java.util.Optional<@NonNull Value> value)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static @NonNull DamlOptional
empty()
Deprecated.boolean
equals(java.lang.Object o)
static DamlOptional
fromProto(com.daml.ledger.api.v1.ValueOuterClass.Optional optional)
java.util.Optional<Value>
getValue()
int
hashCode()
boolean
isEmpty()
static DamlOptional
of(@NonNull java.util.Optional<@NonNull Value> value)
static DamlOptional
of(Value value)
<V> @NonNull java.util.Optional<V>
toOptional(java.util.function.Function<@NonNull Value,@NonNull V> valueMapper)
com.daml.ledger.api.v1.ValueOuterClass.Value
toProto()
@NonNull java.lang.String
toString()
-
-
-
Field Detail
-
EMPTY
public static DamlOptional EMPTY
-
-
Constructor Detail
-
DamlOptional
@Deprecated public DamlOptional(java.util.Optional<@NonNull Value> value)
Deprecated.
-
-
Method Detail
-
of
public static DamlOptional of(@NonNull java.util.Optional<@NonNull Value> value)
-
of
public static DamlOptional of(Value value)
-
getValue
public java.util.Optional<Value> getValue()
-
toOptional
public <V> @NonNull java.util.Optional<V> toOptional(java.util.function.Function<@NonNull Value,@NonNull V> valueMapper)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
isEmpty
public boolean isEmpty()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public @NonNull java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
empty
@Deprecated public static @NonNull DamlOptional empty()
Deprecated.
-
toProto
public com.daml.ledger.api.v1.ValueOuterClass.Value toProto()
-
fromProto
public static DamlOptional fromProto(com.daml.ledger.api.v1.ValueOuterClass.Optional optional)
-
-