GetSetter

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

Functions

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