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

java.util.OptionalLong 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.LongConsumer;
import java.util.function.LongSupplier;
import java.util.function.Supplier;

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

	native public static OptionalLong of(long value);

	native public long getAsLong();

	native public boolean isPresent();

	native public void ifPresent(LongConsumer consumer);

	native public long orElse(long other);

	native public long orElseGet(LongSupplier other);

	native public  long 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