public static interface Box.Lng extends LongSupplier, LongConsumer, Box<Long>
A Box for primitive longs.
| Modifier and Type | Method and Description |
|---|---|
default void |
accept(long value)
Deprecated.
Provided to satisfy
LongConsumer interface; use set(long) instead. |
static Box.Lng |
from(LongSupplier getter,
LongConsumer setter)
Creates a
Box.Long from a LongSupplier and a LongConsumer. |
default Long |
get()
Deprecated.
Provided to satisfy
Box<Long> interface; use getAsLong() instead. |
long |
getAsLong() |
static Box.Lng |
of(long value)
Creates a
Box.Long holding the given value in a non-volatile field. |
void |
set(long value)
Sets the value which will later be returned by
getAsLong(). |
default void |
set(Long value)
Deprecated.
Provided to satisfy
Box<Long> interface; use set(long) instead. |
andThenvoid set(long value)
Sets the value which will later be returned by getAsLong().
long getAsLong()
getAsLong in interface LongSupplier@Deprecated default Long get()
Box<Long> interface; use getAsLong() instead.Auto-boxed getter.
@Deprecated default void set(Long value)
Box<Long> interface; use set(long) instead.Delegates to set(long).
@Deprecated default void accept(long value)
LongConsumer interface; use set(long) instead.Delegates to set(long).
accept in interface LongConsumerstatic Box.Lng of(long value)
Creates a Box.Long holding the given value in a non-volatile field.
static Box.Lng from(LongSupplier getter, LongConsumer setter)
Creates a Box.Long from a LongSupplier and a LongConsumer.