- Type Parameters:
V
- The type of the value property.
- All Superinterfaces:
ValueAccessor<V>
,ValueAccessor.ValueMutator<V>
- Enclosing interface:
- ValueAccessor<V>
public static interface ValueAccessor.ValueProperty<V>
extends ValueAccessor<V>, ValueAccessor.ValueMutator<V>
Extends the
ValueAccessor
with a setter method.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.ValueAccessor
ValueAccessor.ValueBuilder<V,
B extends ValueAccessor.ValueBuilder<V, B>>, ValueAccessor.ValueMutator<V>, ValueAccessor.ValueProperty<V> -
Method Summary
Modifier and TypeMethodDescriptiondefault V
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as ofValueAccessor.ValueMutator.setValue(Object)
and returns the very same value (getter).Methods inherited from interface org.refcodes.mixin.ValueAccessor
getValue, getValueOr
Methods inherited from interface org.refcodes.mixin.ValueAccessor.ValueMutator
setValue
-
Method Details
-
letValue
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as ofValueAccessor.ValueMutator.setValue(Object)
and returns the very same value (getter).- Parameters:
aValue
- The value to set (viaValueAccessor.ValueMutator.setValue(Object)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-