R - T - public class SynchronizedPropertyAccess<R,T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Supplier<T> |
getterInvocation |
protected R |
object |
protected Consumer<T> |
setterInvocation |
| Constructor and Description |
|---|
SynchronizedPropertyAccess(R object,
Supplier<T> getterInvocation,
Consumer<T> setterInvocation) |
| Modifier and Type | Method and Description |
|---|---|
protected T |
create() |
void |
create(Consumer<R> valueConsumer) |
void |
createAndSet(Supplier<T> valueSupplier) |
T |
get() |
T |
getOrCreate(Consumer<T> valueModifier) |
T |
getOrCreate(Supplier<T> valueSupplier) |
boolean |
isDefined() |
Copyright © 2020. All rights reserved.