- 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
Modifier and TypeMethodDescriptiondefault T
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 Details
-
letChild
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.
-