-
- All Superinterfaces:
PercentAccessor
,PercentAccessor.PercentMutator
- Enclosing interface:
- PercentAccessor
public static interface PercentAccessor.PercentProperty extends PercentAccessor, PercentAccessor.PercentMutator
Provides a % property.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.PercentAccessor
PercentAccessor.PercentBuilder<B extends PercentAccessor.PercentBuilder<B>>, PercentAccessor.PercentMutator, PercentAccessor.PercentProperty
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default int
letPercent(int aPercent)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given integer (setter) as ofPercentAccessor.PercentMutator.setPercent(int)
and returns the very same value (getter).-
Methods inherited from interface org.refcodes.mixin.PercentAccessor
getPercent
-
Methods inherited from interface org.refcodes.mixin.PercentAccessor.PercentMutator
setPercent
-
-
-
-
Method Detail
-
letPercent
default int letPercent(int aPercent)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given integer (setter) as ofPercentAccessor.PercentMutator.setPercent(int)
and returns the very same value (getter).- Parameters:
aPercent
- The integer to set (viaPercentAccessor.PercentMutator.setPercent(int)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-
-