- All Superinterfaces:
CommentAccessor
,CommentAccessor.CommentMutator
- Enclosing interface:
- CommentAccessor
public static interface CommentAccessor.CommentProperty
extends CommentAccessor, CommentAccessor.CommentMutator
Provides a comment property.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.CommentAccessor
CommentAccessor.CommentBuilder<B extends CommentAccessor.CommentBuilder<B>>, CommentAccessor.CommentMutator, CommentAccessor.CommentProperty
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
letComment
(String aComment) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenString
(setter) as ofCommentAccessor.CommentMutator.setComment(String)
and returns the very same value (getter).Methods inherited from interface org.refcodes.mixin.CommentAccessor
getComment
Methods inherited from interface org.refcodes.mixin.CommentAccessor.CommentMutator
setComment
-
Method Details
-
letComment
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenString
(setter) as ofCommentAccessor.CommentMutator.setComment(String)
and returns the very same value (getter).- Parameters:
aComment
- TheString
to set (viaCommentAccessor.CommentMutator.setComment(String)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-