All Downloads are FREE. Search and download functionalities are using the official Maven repository.

java.util.OptionalDouble Maven / Gradle / Ivy

Go to download

JVM AOT compiler currently generating JavaScript, C++, Haxe, with initial focus on Kotlin and games.

There is a newer version: 0.6.8
Show newest version
package java.util;

import java.util.function.DoubleConsumer;
import java.util.function.DoubleSupplier;
import java.util.function.Supplier;

public final class OptionalDouble {
	native public static OptionalDouble empty();

	native public static OptionalDouble of(double value);

	native public double getAsDouble();

	native public boolean isPresent();

	native public void ifPresent(DoubleConsumer consumer);

	native public double orElse(double other);

	native public double orElseGet(DoubleSupplier other);

	native public  double orElseThrow(Supplier exceptionSupplier) throws X;

	native public boolean equals(Object obj);

	native public int hashCode();

	native public String toString();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy