toggle menu
MoulConfig
3.6.0
jvm
switch theme
search in API
common
/
io.github.notenoughupdates.moulconfig.observer
/
GetSetter
Get
Setter
public
interface
GetSetter
<
T
>
implements
Supplier
<
T
>
,
Consumer
<
T
>
(
source
)
A generic class holding a value. May be backed directly by a field, or a property.
Inheritors
Property
Members
Functions
accept
Link copied to clipboard
public
void
accept
(
T
t
)
Bridge method for
Consumer
.
and
Then
Link copied to clipboard
public
Consumer
<
T
>
andThen
(
Consumer
<
? super
T
>
after
)
constant
Link copied to clipboard
public
static
GetSetter
<
T
>
constant
<
T
>
(
T
t
)
Create a constant
GetSetter
.
floating
Link copied to clipboard
public
static
GetSetter
<
T
>
floating
<
T
>
(
T
t
)
Create a floating
GetSetter
.
get
Link copied to clipboard
public
abstract
T
get
(
)
Get the value.
of
Field
Link copied to clipboard
public
static
GetSetter
<
? extends
Object
>
ofField
(
@
Nullable
(
)
Object
owner
,
@
NotNull
(
)
@
NotNull
(
)
Field
field
)
Create a
GetSetter
backed by a field… This
GetSetter
will update to and poll from the underlying field without any buffer.
set
Link copied to clipboard
public
abstract
void
set
(
T
newValue
)
Set the value.