Class DamlOptional


  • public final class DamlOptional
    extends Value
    • 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)
      • 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 class java.lang.Object
      • isEmpty

        public boolean isEmpty()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public @NonNull java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • empty

        @Deprecated
        public static @NonNull DamlOptional empty()
        Deprecated.