MoulConfig
Toggle table of contents
9999.9999.9999+16fcc03
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
MoulConfig
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
.
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.