Module org.refcodes.component
Package org.refcodes.component
Interface HandleAccessor.HandleProperty<H>
-
- Type Parameters:
H
- The type of the handle property.
- All Superinterfaces:
HandleAccessor<H>
,HandleAccessor.HandleMutator<H>
- Enclosing interface:
- HandleAccessor<H>
public static interface HandleAccessor.HandleProperty<H> extends HandleAccessor<H>, HandleAccessor.HandleMutator<H>
Provides a handle property for e.g. key / handle pair.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.component.HandleAccessor
HandleAccessor.HandleMutator<H>, HandleAccessor.HandleProperty<H>
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default H
letHandle(H aHandle)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given handle (setter) as ofHandleAccessor.HandleMutator.setHandle(Object)
and returns the very same value (getter).-
Methods inherited from interface org.refcodes.component.HandleAccessor
getHandle
-
Methods inherited from interface org.refcodes.component.HandleAccessor.HandleMutator
setHandle
-
-
-
-
Method Detail
-
letHandle
default H letHandle(H aHandle)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given handle (setter) as ofHandleAccessor.HandleMutator.setHandle(Object)
and returns the very same value (getter).- Parameters:
aHandle
- The handle to set (viaHandleAccessor.HandleMutator.setHandle(Object)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-
-