- All Superinterfaces:
OffsetAccessor
,OffsetAccessor.OffsetMutator
- Enclosing interface:
- OffsetAccessor
public static interface OffsetAccessor.OffsetProperty
extends OffsetAccessor, OffsetAccessor.OffsetMutator
Provides a offset property.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.OffsetAccessor
OffsetAccessor.OffsetBuilder<B extends OffsetAccessor.OffsetBuilder<B>>, OffsetAccessor.OffsetMutator, OffsetAccessor.OffsetProperty
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
letOffset
(int aOffset) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given integer (setter) as ofOffsetAccessor.OffsetMutator.setOffset(int)
and returns the very same value (getter).Methods inherited from interface org.refcodes.mixin.OffsetAccessor
getOffset
Methods inherited from interface org.refcodes.mixin.OffsetAccessor.OffsetMutator
setOffset
-
Method Details
-
letOffset
default int letOffset(int aOffset) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given integer (setter) as ofOffsetAccessor.OffsetMutator.setOffset(int)
and returns the very same value (getter).- Parameters:
aOffset
- The integer to set (viaOffsetAccessor.OffsetMutator.setOffset(int)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-