-
- 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 theNumberAccessor
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
All Methods Instance Methods Default Methods Modifier and Type Method Description default V
letNumber(V aNumber)
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 Detail
-
letNumber
default V letNumber(V aNumber)
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.
-
-