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