toggle menu
MoulConfig
3.2.0
jvm
switch theme
search in API
common
/
io.github.notenoughupdates.moulconfig.observer
/
GetSetter
Get
Setter
interface
GetSetter
<
T
>
:
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
open
fun
accept
(
t
:
T
)
Bridge method for
Consumer
.
and
Then
Link copied to clipboard
open
fun
andThen
(
after
:
Consumer
<
in
T
>
)
:
Consumer
<
T
>
constant
Link copied to clipboard
open
fun
<
T
>
constant
(
t
:
T
)
:
GetSetter
<
T
>
Create a constant
GetSetter
.
floating
Link copied to clipboard
open
fun
<
T
>
floating
(
t
:
T
)
:
GetSetter
<
T
>
Create a floating
GetSetter
.
get
Link copied to clipboard
abstract
fun
get
(
)
:
T
Get the value.
of
Field
Link copied to clipboard
open
fun
ofField
(
@
Nullable
owner
:
@
Nullable
Any
,
@
NotNull
field
:
@
NotNull
Field
)
:
GetSetter
<
out
Any
>
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
abstract
fun
set
(
newValue
:
T
)
Set the value.