- All Superinterfaces:
HopCountAccessor
,HopCountAccessor.HopCountMutator
- Enclosing interface:
- HopCountAccessor
public static interface HopCountAccessor.HopCountProperty
extends HopCountAccessor, HopCountAccessor.HopCountMutator
Provides a hop count property.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.p2p.HopCountAccessor
HopCountAccessor.HopCountBuilder<B extends HopCountAccessor.HopCountBuilder<B>>, HopCountAccessor.HopCountMutator, HopCountAccessor.HopCountProperty
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
letHopCount
(int aHopCount) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as ofHopCountAccessor.HopCountMutator.setHopCount(int)
and returns the very same value (getter).Methods inherited from interface org.refcodes.p2p.HopCountAccessor
getHopCount
Methods inherited from interface org.refcodes.p2p.HopCountAccessor.HopCountMutator
setHopCount
-
Method Details
-
letHopCount
default int letHopCount(int aHopCount) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as ofHopCountAccessor.HopCountMutator.setHopCount(int)
and returns the very same value (getter).- Parameters:
aHopCount
- The value to set (viaHopCountAccessor.HopCountMutator.setHopCount(int)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-