Interface HasComments
- All Known Subinterfaces:
EntityExtended
,ExternalEntity
,HasMutableComments
,MutableEntityExtended
,MutableExternalEntity
- All Known Implementing Classes:
EntityExtendedImp
,ExternalEntityImp
,MutableEntityExtendedImp
,MutableExternalEntityImp
public interface HasComments
Defines a mixin and abstracts an entity with comments.
-
Method Summary
Modifier and TypeMethodDescriptioncomments()
Return the collection of comments owned by the entity.findByAuthor
(@NotNull String author) Return the comments authored by the given author.Return the comments having the given tag.findByTime
(LocalDateTime from, LocalDateTime to) Return all the comments which creation date is in the closed interval.
-
Method Details
-
comments
Collection<Comment> comments()Return the collection of comments owned by the entity.- Returns:
- list of comments
-
findByAuthor
-
findByTag
-
findByTime
Return all the comments which creation date is in the closed interval.- Parameters:
from
- beginning of the time interval or LocalDateTime.MINto
- end of the time interval or LocalDateTime.MAX- Returns:
- list of requested comments
-