public static interface Box.Dbl extends DoubleSupplier, DoubleConsumer, Box<Double>
A Box for primitive doubles.
| Modifier and Type | Method and Description |
|---|---|
default void |
accept(double value)
Deprecated.
Provided to satisfy the
DoubleConsumer; use set(double) instead. |
static Box.Dbl |
from(DoubleSupplier getter,
DoubleConsumer setter)
Creates a
Box.Dbl from a DoubleSupplier and a DoubleConsumer. |
default Double |
get()
Deprecated.
Provided to satisfy
Box<Double>; use getAsDouble() instead. |
double |
getAsDouble() |
static Box.Dbl |
of(double value)
Creates a
Box.Dbl holding the given value in a non-volatile field. |
void |
set(double value)
Sets the value which will later be returned by get().
|
default void |
set(Double value)
Deprecated.
Provided to satisfy
Box<Double>; use set(double) instead. |
andThenvoid set(double value)
Sets the value which will later be returned by get().
double getAsDouble()
getAsDouble in interface DoubleSupplier@Deprecated default Double get()
Box<Double>; use getAsDouble() instead.Delegates to getAsDouble().
@Deprecated default void set(Double value)
Box<Double>; use set(double) instead.Delegates to set(double).
@Deprecated default void accept(double value)
DoubleConsumer; use set(double) instead.Delegates to set(double).
accept in interface DoubleConsumerstatic Box.Dbl of(double value)
Creates a Box.Dbl holding the given value in a non-volatile field.
static Box.Dbl from(DoubleSupplier getter, DoubleConsumer setter)
Creates a Box.Dbl from a DoubleSupplier and a DoubleConsumer.