Java/java/util/OptionalLong.fz
# Fuzion interface to instance members of Java instance class 'java.util.OptionalLong'
#
# !!!!!! 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.OptionalLong(redef forbidden void) ref : Java.java.lang.Object(forbidden), fuzion.java.Java_Object(forbidden) is
# call Java instance method 'public long java.util.OptionalLong.getAsLong()':
#
public getAsLong i64 =>
fuzion.java.call_virtual (i64) "java.util.OptionalLong" "getAsLong" "()J" OptionalLong.this []
# call Java instance method 'public void java.util.OptionalLong.ifPresentOrElse(java.util.function.LongConsumer,java.lang.Runnable)':
#
public ifPresentOrElse_Ljava_7_util_7_function_7_LongConsumer_s_Ljava_7_lang_7_Runnable_s_(arg0 Java.java.util.function.LongConsumer, arg1 Java.java.lang.Runnable) unit =>
fuzion.java.call_virtual (unit) "java.util.OptionalLong" "ifPresentOrElse" "(Ljava/util/function/LongConsumer;Ljava/lang/Runnable;)V" OptionalLong.this [(Java.java.util.OptionalLong.ifPresentOrElse_Ljava_7_util_7_function_7_LongConsumer_s_Ljava_7_lang_7_Runnable_s_.this.arg0); (Java.java.util.OptionalLong.ifPresentOrElse_Ljava_7_util_7_function_7_LongConsumer_s_Ljava_7_lang_7_Runnable_s_.this.arg1)]
# call Java instance method 'public void java.util.OptionalLong.ifPresent(java.util.function.LongConsumer)':
#
public ifPresent_Ljava_7_util_7_function_7_LongConsumer_s_(arg0 Java.java.util.function.LongConsumer) unit =>
fuzion.java.call_virtual (unit) "java.util.OptionalLong" "ifPresent" "(Ljava/util/function/LongConsumer;)V" OptionalLong.this [(Java.java.util.OptionalLong.ifPresent_Ljava_7_util_7_function_7_LongConsumer_s_.this.arg0)]
# call Java instance method 'public boolean java.util.OptionalLong.isEmpty()':
#
public isEmpty bool =>
fuzion.java.call_virtual (bool) "java.util.OptionalLong" "isEmpty" "()Z" OptionalLong.this []
# call Java instance method 'public boolean java.util.OptionalLong.isPresent()':
#
public isPresent bool =>
fuzion.java.call_virtual (bool) "java.util.OptionalLong" "isPresent" "()Z" OptionalLong.this []
# call Java instance method 'public long java.util.OptionalLong.orElseGet(java.util.function.LongSupplier)':
#
public orElseGet_Ljava_7_util_7_function_7_LongSupplier_s_(arg0 Java.java.util.function.LongSupplier) i64 =>
fuzion.java.call_virtual (i64) "java.util.OptionalLong" "orElseGet" "(Ljava/util/function/LongSupplier;)J" OptionalLong.this [(Java.java.util.OptionalLong.orElseGet_Ljava_7_util_7_function_7_LongSupplier_s_.this.arg0)]
# call Java instance method 'public long java.util.OptionalLong.orElseThrow()':
#
public orElseThrow i64 =>
fuzion.java.call_virtual (i64) "java.util.OptionalLong" "orElseThrow" "()J" OptionalLong.this []
# call Java instance method 'public long java.util.OptionalLong.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 (i64) =>
fuzion.java.call_virtual (outcome (i64)) "java.util.OptionalLong" "orElseThrow" "(Ljava/util/function/Supplier;)J" OptionalLong.this [(Java.java.util.OptionalLong.orElseThrow_Ljava_7_util_7_function_7_Supplier_s_.this.arg0)]
# call Java instance method 'public long java.util.OptionalLong.orElse(long)':
#
public orElse_J(arg0 i64) i64 =>
fuzion.java.call_virtual (i64) "java.util.OptionalLong" "orElse" "(J)J" OptionalLong.this [(fuzion.java.i64_to_java_object Java.java.util.OptionalLong.orElse_J.this.arg0)]
# call Java instance method 'public java.util.stream.LongStream java.util.OptionalLong.stream()':
#
public stream Java.java.util.stream.LongStream =>
fuzion.java.call_virtual (Java.java.util.stream.LongStream) "java.util.OptionalLong" "stream" "()Ljava/util/stream/LongStream;" OptionalLong.this []
# short-hand to call Java method 'public void java.util.OptionalLong.ifPresent(java.util.function.LongConsumer)':
#
public ifPresent(arg0 Java.java.util.function.LongConsumer) (unit) =>
ifPresent_Ljava_7_util_7_function_7_LongConsumer_s_ Java.java.util.OptionalLong.ifPresent.this.arg0
# short-hand to call Java method 'public void java.util.OptionalLong.ifPresentOrElse(java.util.function.LongConsumer,java.lang.Runnable)':
#
public ifPresentOrElse(arg0 Java.java.util.function.LongConsumer, arg1 Java.java.lang.Runnable) (unit) =>
ifPresentOrElse_Ljava_7_util_7_function_7_LongConsumer_s_Ljava_7_lang_7_Runnable_s_ Java.java.util.OptionalLong.ifPresentOrElse.this.arg0 Java.java.util.OptionalLong.ifPresentOrElse.this.arg1
# short-hand to call Java method 'public long java.util.OptionalLong.orElse(long)':
#
public orElse(arg0 i64) (i64) =>
orElse_J Java.java.util.OptionalLong.orElse.this.arg0
# short-hand to call Java method 'public long java.util.OptionalLong.orElseGet(java.util.function.LongSupplier)':
#
public orElseGet(arg0 Java.java.util.function.LongSupplier) (i64) =>
orElseGet_Ljava_7_util_7_function_7_LongSupplier_s_ Java.java.util.OptionalLong.orElseGet.this.arg0
# short-hand to call Java method 'public long java.util.OptionalLong.orElseThrow(java.util.function.Supplier) throws java.lang.Throwable':
#
public orElseThrow(arg0 Java.java.util.function.Supplier) (outcome (i64)) =>
orElseThrow_Ljava_7_util_7_function_7_Supplier_s_ Java.java.util.OptionalLong.orElseThrow.this.arg0
last changed: 2024-03-07