public static interface Box.Dbl extends DoubleSupplier, DoubleConsumer
Modifier and Type | Interface and Description |
---|---|
static class |
Box.Dbl.Default
A simple implementation of Box.Double.
|
Modifier and Type | Method and Description |
---|---|
default void |
accept(double value)
Delegates to set().
|
static Box.Dbl |
from(DoubleSupplier getter,
DoubleConsumer setter)
Creates a Box.Double from a Supplier and a Consumer.
|
double |
get()
Returns the boxed value.
|
default double |
getAsDouble()
Delegates to get().
|
static Box.Dbl |
of(double value)
Returns a Box wrapped around the given double.
|
void |
set(double value)
Sets the value which will later be returned by get().
|
andThen
void set(double value)
double get()
default void accept(double value)
accept
in interface DoubleConsumer
default double getAsDouble()
getAsDouble
in interface DoubleSupplier
static Box.Dbl of(double value)
static Box.Dbl from(DoubleSupplier getter, DoubleConsumer setter)