Interface HasMutableComments
- All Superinterfaces:
HasComments
- All Known Subinterfaces:
MutableEntityExtended,MutableExternalEntity
- All Known Implementing Classes:
MutableEntityExtendedImp,MutableExternalEntityImp
Defines a mixin and abstracts an entity with comments.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a comment to the list of comments.default voidaddComments(@NotNull Iterable<Comment> comments) Add a list of comments.voidcomments(Collection<Comment> comments) Set the new collection of comments.voidRemove the given comment from the list of comments.Methods inherited from interface net.tangly.core.HasComments
comments, findByAuthor, findByTag, findByTime
-
Method Details
-
comments
Set the new collection of comments.- Parameters:
comments- new collection of comments- See Also:
-
add
Adds a comment to the list of comments.- Parameters:
comment- comment to be added, cannot be null
-
remove
Remove the given comment from the list of comments.- Parameters:
comment- comment to be removed, cannot be null
-
addComments
-