Java/java/util/OptionalDouble.fz
# Fuzion interface to instance members of Java instance class 'java.util.OptionalDouble'
#
# !!!!!! DO NOT EDIT, GENERATED CODE !!!!!!
#
# This code was generated automatically using the fzjava tool V0.087 called
# as follows:
#
# ./build/bin/fzjava java.base -to=build/modules/java.base -verbose=0
#
public Java.java.util.OptionalDouble(redef forbidden void) ref : Java.java.lang.Object(forbidden), fuzion.java.Java_Object(forbidden) is
# call Java instance method 'public double java.util.OptionalDouble.getAsDouble()':
#
public getAsDouble f64 =>
fuzion.java.call_virtual (f64) "java.util.OptionalDouble" "getAsDouble" "()D" OptionalDouble.this []
# call Java instance method 'public void java.util.OptionalDouble.ifPresentOrElse(java.util.function.DoubleConsumer,java.lang.Runnable)':
#
public ifPresentOrElse_Ljava_7_util_7_function_7_DoubleConsumer_s_Ljava_7_lang_7_Runnable_s_(arg0 Java.java.util.function.DoubleConsumer, arg1 Java.java.lang.Runnable) unit =>
fuzion.java.call_virtual (unit) "java.util.OptionalDouble" "ifPresentOrElse" "(Ljava/util/function/DoubleConsumer;Ljava/lang/Runnable;)V" OptionalDouble.this [(Java.java.util.OptionalDouble.ifPresentOrElse_Ljava_7_util_7_function_7_DoubleConsumer_s_Ljava_7_lang_7_Runnable_s_.this.arg0); (Java.java.util.OptionalDouble.ifPresentOrElse_Ljava_7_util_7_function_7_DoubleConsumer_s_Ljava_7_lang_7_Runnable_s_.this.arg1)]
# call Java instance method 'public void java.util.OptionalDouble.ifPresent(java.util.function.DoubleConsumer)':
#
public ifPresent_Ljava_7_util_7_function_7_DoubleConsumer_s_(arg0 Java.java.util.function.DoubleConsumer) unit =>
fuzion.java.call_virtual (unit) "java.util.OptionalDouble" "ifPresent" "(Ljava/util/function/DoubleConsumer;)V" OptionalDouble.this [(Java.java.util.OptionalDouble.ifPresent_Ljava_7_util_7_function_7_DoubleConsumer_s_.this.arg0)]
# call Java instance method 'public boolean java.util.OptionalDouble.isEmpty()':
#
public isEmpty bool =>
fuzion.java.call_virtual (bool) "java.util.OptionalDouble" "isEmpty" "()Z" OptionalDouble.this []
# call Java instance method 'public boolean java.util.OptionalDouble.isPresent()':
#
public isPresent bool =>
fuzion.java.call_virtual (bool) "java.util.OptionalDouble" "isPresent" "()Z" OptionalDouble.this []
# call Java instance method 'public double java.util.OptionalDouble.orElseGet(java.util.function.DoubleSupplier)':
#
public orElseGet_Ljava_7_util_7_function_7_DoubleSupplier_s_(arg0 Java.java.util.function.DoubleSupplier) f64 =>
fuzion.java.call_virtual (f64) "java.util.OptionalDouble" "orElseGet" "(Ljava/util/function/DoubleSupplier;)D" OptionalDouble.this [(Java.java.util.OptionalDouble.orElseGet_Ljava_7_util_7_function_7_DoubleSupplier_s_.this.arg0)]
# call Java instance method 'public double java.util.OptionalDouble.orElseThrow()':
#
public orElseThrow f64 =>
fuzion.java.call_virtual (f64) "java.util.OptionalDouble" "orElseThrow" "()D" OptionalDouble.this []
# call Java instance method 'public double java.util.OptionalDouble.orElseThrow(java.util.function.Supplier) throws java.lang.Throwable':
#
public orElseThrow_Ljava_7_util_7_function_7_Supplier_s_(arg0 Java.java.util.function.Supplier) outcome (f64) =>
fuzion.java.call_virtual (outcome (f64)) "java.util.OptionalDouble" "orElseThrow" "(Ljava/util/function/Supplier;)D" OptionalDouble.this [(Java.java.util.OptionalDouble.orElseThrow_Ljava_7_util_7_function_7_Supplier_s_.this.arg0)]
# call Java instance method 'public double java.util.OptionalDouble.orElse(double)':
#
public orElse_D(arg0 f64) f64 =>
fuzion.java.call_virtual (f64) "java.util.OptionalDouble" "orElse" "(D)D" OptionalDouble.this [(fuzion.java.f64_to_java_object Java.java.util.OptionalDouble.orElse_D.this.arg0)]
# call Java instance method 'public java.util.stream.DoubleStream java.util.OptionalDouble.stream()':
#
public stream Java.java.util.stream.DoubleStream =>
fuzion.java.call_virtual (Java.java.util.stream.DoubleStream) "java.util.OptionalDouble" "stream" "()Ljava/util/stream/DoubleStream;" OptionalDouble.this []
# short-hand to call Java method 'public void java.util.OptionalDouble.ifPresent(java.util.function.DoubleConsumer)':
#
public ifPresent(arg0 Java.java.util.function.DoubleConsumer) (unit) =>
ifPresent_Ljava_7_util_7_function_7_DoubleConsumer_s_ Java.java.util.OptionalDouble.ifPresent.this.arg0
# short-hand to call Java method 'public void java.util.OptionalDouble.ifPresentOrElse(java.util.function.DoubleConsumer,java.lang.Runnable)':
#
public ifPresentOrElse(arg0 Java.java.util.function.DoubleConsumer, arg1 Java.java.lang.Runnable) (unit) =>
ifPresentOrElse_Ljava_7_util_7_function_7_DoubleConsumer_s_Ljava_7_lang_7_Runnable_s_ Java.java.util.OptionalDouble.ifPresentOrElse.this.arg0 Java.java.util.OptionalDouble.ifPresentOrElse.this.arg1
# short-hand to call Java method 'public double java.util.OptionalDouble.orElse(double)':
#
public orElse(arg0 f64) (f64) =>
orElse_D Java.java.util.OptionalDouble.orElse.this.arg0
# short-hand to call Java method 'public double java.util.OptionalDouble.orElseGet(java.util.function.DoubleSupplier)':
#
public orElseGet(arg0 Java.java.util.function.DoubleSupplier) (f64) =>
orElseGet_Ljava_7_util_7_function_7_DoubleSupplier_s_ Java.java.util.OptionalDouble.orElseGet.this.arg0
# short-hand to call Java method 'public double java.util.OptionalDouble.orElseThrow(java.util.function.Supplier) throws java.lang.Throwable':
#
public orElseThrow(arg0 Java.java.util.function.Supplier) (outcome (f64)) =>
orElseThrow_Ljava_7_util_7_function_7_Supplier_s_ Java.java.util.OptionalDouble.orElseThrow.this.arg0
last changed: 2024-03-07