- Type Parameters:
V
- The type of the number property.
- All Superinterfaces:
NumberAccessor<V>
,NumberAccessor.NumberMutator<V>
- Enclosing interface:
- NumberAccessor<V>
public static interface NumberAccessor.NumberProperty<V>
extends NumberAccessor<V>, NumberAccessor.NumberMutator<V>
Extends the
NumberAccessor
with a setter method.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.NumberAccessor
NumberAccessor.NumberBuilder<V,
B extends NumberAccessor.NumberBuilder<V, B>>, NumberAccessor.NumberMutator<V>, NumberAccessor.NumberProperty<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 ofNumberAccessor.NumberMutator.setNumber(Object)
and returns the very same value (getter).Methods inherited from interface org.refcodes.mixin.NumberAccessor
getNumber
Methods inherited from interface org.refcodes.mixin.NumberAccessor.NumberMutator
setNumber
-
Method Details
-
letNumber
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as ofNumberAccessor.NumberMutator.setNumber(Object)
and returns the very same value (getter).- Parameters:
aNumber
- The value to set (viaNumberAccessor.NumberMutator.setNumber(Object)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-