public final class OptionalDouble extends Object
Modifier and Type | Method and Description |
---|---|
static OptionalDouble |
empty() |
boolean |
equals(Object obj) |
double |
getAsDouble() |
int |
hashCode() |
void |
ifPresent(DoubleConsumer consumer) |
boolean |
isPresent() |
static OptionalDouble |
of(double value) |
double |
orElse(double other) |
double |
orElseGet(DoubleSupplier other) |
<X extends Throwable> |
orElseThrow(Supplier<X> exceptionSupplier) |
String |
toString() |
public static OptionalDouble empty()
public static OptionalDouble of(double value)
public boolean isPresent()
public double getAsDouble()
public void ifPresent(DoubleConsumer consumer)
public double orElse(double other)
public double orElseGet(DoubleSupplier other)
public <X extends Throwable> double orElseThrow(Supplier<X> exceptionSupplier) throws X extends Throwable
X extends Throwable
Copyright © 2018. All rights reserved.