- Type Parameters:
SRC
- The type of the source in question.
- All Superinterfaces:
SourceAccessor<SRC>
,SourceAccessor.SourceMutator<SRC>
- Enclosing interface:
- SourceAccessor<SRC>
public static interface SourceAccessor.SourceProperty<SRC>
extends SourceAccessor<SRC>, SourceAccessor.SourceMutator<SRC>
Provides a source property for e.g. source of an event.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.SourceAccessor
SourceAccessor.SourceBuilder<SRC,
B extends SourceAccessor.SourceBuilder<SRC, B>>, SourceAccessor.SourceMutator<SRC>, SourceAccessor.SourceProperty<SRC> -
Method Summary
Modifier and TypeMethodDescriptiondefault SRC
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as ofSourceAccessor.SourceMutator.setSource(Object)
and returns the very same value (getter).Methods inherited from interface org.refcodes.mixin.SourceAccessor
getSource
Methods inherited from interface org.refcodes.mixin.SourceAccessor.SourceMutator
setSource
-
Method Details
-
letSource
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as ofSourceAccessor.SourceMutator.setSource(Object)
and returns the very same value (getter).- Parameters:
aSource
- The value to set (viaSourceAccessor.SourceMutator.setSource(Object)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-