- All Superinterfaces:
PortAccessor
,PortAccessor.PortMutator
- Enclosing interface:
- PortAccessor
Provides a port property.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.PortAccessor
PortAccessor.PortBuilder<B extends PortAccessor.PortBuilder<B>>, PortAccessor.PortMutator, PortAccessor.PortProperty
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
letPort
(int aPort) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given integer (setter) as ofPortAccessor.PortMutator.setPort(int)
and returns the very same value (getter).Methods inherited from interface org.refcodes.mixin.PortAccessor
getPort
Methods inherited from interface org.refcodes.mixin.PortAccessor.PortMutator
setPort
-
Method Details
-
letPort
default int letPort(int aPort) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given integer (setter) as ofPortAccessor.PortMutator.setPort(int)
and returns the very same value (getter).- Parameters:
aPort
- The integer to set (viaPortAccessor.PortMutator.setPort(int)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-