@Value.Immutable public abstract class ReadOnlyProperty<O,T> extends Object implements IsReadable<O,T>, HasHumanReadableLabel
| Constructor and Description |
|---|
ReadOnlyProperty() |
| 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> ImmutableReadOnlyProperty<O,T> |
of(Class<O> type,
String name,
Function<O,T> getter) |
String |
toString() |
protected abstract Class<O> |
type() |
ReadOnlyValue<O,T> |
withId(Id<O> id) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasHumanReadable@Value.Parameter protected abstract String name()
public String asHumanReadable()
asHumanReadable in interface HasHumanReadableLabelpublic ReadOnlyValue<O,T> withId(Id<O> id)
public static <O,T> ImmutableReadOnlyProperty<O,T> of(Class<O> type, String name, Function<O,T> getter)
Copyright © 2023. All rights reserved.