api/src/main/java/com/tersesystems/echopraxia/api/Value.java
/**
   * Wraps an optional value, returning nullValue() if the optional is empty.
   *
   * <p>Best used with {@code fb.value()} or {@code fb.keyValue()}.
   *
   * @param optionalValue the optional value.
   * @return the value, or null value if the optional is empty.
   */
Wraps an optional value, returning nullValue() if the optional is empty.

@param optionalValue the optional value.
@return the value, or null value if the optional is empty.
Wraps an optional value returning nullValue () if the optional is empty . @param optionalValue the optional value . @return the value or null value if the optional is empty .
@SuppressWarnings("OptionalUsedAsFieldOrParameterType")
  @NotNull
  public static Value<?> optional(@NotNull Optional<? extends Value<?>> optionalValue) {
    if (optionalValue.isPresent()) {
      return optionalValue.get();
    }
    return nullValue();
  }
@ SuppressWarnings ( "OptionalUsedAsFieldOrParameterType" ) @ NotNull public static Value < ? > optional ( @ NotNull Optional < ? extends Value < ? > > optionalValue ) { if ( optionalValue . isPresent ( ) ) { return optionalValue . get ( ) ; } return nullValue ( ) ; }
Wraps an optional value, returning nullValue() if the optional is empty.
Wraps an optional value returning nullValue () if the optional is empty .