@Value.Immutable public abstract class ModifiableProperty<O,T> extends Object implements IsReadable<O,T>, IsWritable<O,T>, HasHumanReadableLabel
| Constructor and Description |
|---|
ModifiableProperty() |
| Modifier and Type | Method and Description |
|---|---|
String |
asHumanReadable() |
T |
get(O instance) |
protected abstract Function<O,T> |
getter() |
protected abstract String |
name() |
static <O,T> ImmutableModifiableProperty<O,T> |
of(Class<O> type,
String name,
Function<O,T> getter,
BiConsumer<O,T> setter) |
void |
set(O instance,
T value) |
protected abstract BiConsumer<O,T> |
setter() |
String |
toString() |
protected abstract Class<O> |
type() |
ModifyInstanceValue<O,T> |
withId(Id<O> id) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasHumanReadable@Value.Parameter protected abstract String name()
@Value.Parameter protected abstract BiConsumer<O,T> setter()
public String asHumanReadable()
asHumanReadable in interface HasHumanReadableLabelpublic ModifyInstanceValue<O,T> withId(Id<O> id)
public static <O,T> ImmutableModifiableProperty<O,T> of(Class<O> type, String name, Function<O,T> getter, BiConsumer<O,T> setter)
Copyright © 2023. All rights reserved.