-
- Type Parameters:
T
- The type of the child to be accessed.
- All Superinterfaces:
ChildAccessor<T>
,ChildAccessor.ChildMutator<T>
- Enclosing interface:
- ChildAccessor<T>
public static interface ChildAccessor.ChildProperty<T> extends ChildAccessor<T>, ChildAccessor.ChildMutator<T>
Provides a child property.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.ChildAccessor
ChildAccessor.ChildBuilder<T,B extends ChildAccessor.ChildBuilder<T,B>>, ChildAccessor.ChildMutator<T>, ChildAccessor.ChildProperty<T>
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default T
letChild(T aChild)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as ofChildAccessor.ChildMutator.setChild(Object)
and returns the very same value (getter).-
Methods inherited from interface org.refcodes.mixin.ChildAccessor
getChild
-
Methods inherited from interface org.refcodes.mixin.ChildAccessor.ChildMutator
setChild
-
-
-
-
Method Detail
-
letChild
default T letChild(T aChild)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as ofChildAccessor.ChildMutator.setChild(Object)
and returns the very same value (getter).- Parameters:
aChild
- The value to set (viaChildAccessor.ChildMutator.setChild(Object)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-
-