@Value.Immutable public abstract class Attribute<O,T> extends Object implements Value<T>, ValueSource<T>, ValueSink<T>
| Constructor and Description |
|---|
Attribute() |
| Modifier and Type | Method and Description |
|---|---|
T |
get(O domainObject) |
protected abstract Function<O,T> |
getter() |
boolean |
isMatchingInstance(Object instance) |
protected abstract String |
name() |
protected abstract Class<O> |
objectType() |
static <T,O> Attribute<O,T> |
of(Class<O> objectType,
String name,
Function<O,T> getter,
BiConsumer<O,T> setter) |
void |
set(O domainObject,
T value) |
protected abstract BiConsumer<O,T> |
setter() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitnamed, ofType, relatedTo, unvalidatedprotected abstract String name()
protected abstract BiConsumer<O,T> setter()
public boolean isMatchingInstance(Object instance)
public static <T,O> Attribute<O,T> of(Class<O> objectType, String name, Function<O,T> getter, BiConsumer<O,T> setter)
Copyright © 2023. All rights reserved.