GetSetter

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

Functions

Link copied to clipboard
open fun accept(t: T)
Bridge method for Consumer.
Link copied to clipboard
open fun andThen(after: Consumer<in T>): Consumer<T>
Link copied to clipboard
open fun <T> constant(t: T): GetSetter<T>
Create a constant GetSetter.
Link copied to clipboard
open fun <T> floating(t: T): GetSetter<T>
Create a floating GetSetter.
Link copied to clipboard
abstract fun get(): T
Get the value.
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.
Link copied to clipboard
abstract fun set(newValue: T)
Set the value.