Class MutableExternalEntityImp
java.lang.Object
net.tangly.core.MutableExternalEntityImp
- All Implemented Interfaces:
ExternalEntity,HasComments,HasDate,HasId,HasMutableComments,HasMutableDate,HasMutableId,HasMutableName,HasMutableTags,HasMutableText,HasName,HasTags,HasText,MutableExternalEntity
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.tangly.core.HasDate
HasDate.IntervalFilter<T extends HasDate>Nested classes/interfaces inherited from interface net.tangly.core.HasMutableDate
HasMutableDate.IntervalFilter<T extends HasMutableDate> -
Field Summary
Fields inherited from interface net.tangly.core.HasMutableName
NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a comment to the list of comments.booleanAdd the tag to the collection of tags.voidclear()comments()Return the collection of comments owned by the entity.voidcomments(Collection<Comment> comments) Set the new collection of comments.date()Returns the date of entity.voidSet the new date of the entity.booleaninthashCode()id()Return the unique external identifier of the instance.voidSet the identifier of the instance.name()voidvoidRemove the given comment from the list of comments.booleanRemove the tag from the collection of tags.tags()Returns the collection of tags for the entity.voidtags(@NotNull Collection<Tag> tags) Set the new collection of tags for the entity.text()Return the human-readable text description of the instance.voidSet the text description of the entity.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.tangly.core.HasComments
findByAuthor, findByTag, findByTimeMethods inherited from interface net.tangly.core.HasMutableComments
addCommentsMethods inherited from interface net.tangly.core.HasMutableTags
addTags, rawTags, removeTagNamed, update, updateMethods inherited from interface net.tangly.core.HasTags
containsTag, containsTag, findBy, findBy, findByNamespace, rawTags, value, value
-
Constructor Details
-
MutableExternalEntityImp
-
-
Method Details
-
id
-
id
Description copied from interface:HasMutableIdSet the identifier of the instance.- Specified by:
idin interfaceHasMutableId- Parameters:
id- new ID of the instance.
-
name
-
name
- Specified by:
namein interfaceHasMutableName
-
text
-
text
Description copied from interface:HasMutableTextSet the text description of the entity.- Specified by:
textin interfaceHasMutableText- Parameters:
text- human readable text description- See Also:
-
date
-
date
Description copied from interface:HasMutableDateSet the new date of the entity.- Specified by:
datein interfaceHasMutableDate- Parameters:
date- new date of the entity- See Also:
-
comments
Description copied from interface:HasCommentsReturn the collection of comments owned by the entity.- Specified by:
commentsin interfaceHasComments- Returns:
- list of comments
-
comments
Description copied from interface:HasMutableCommentsSet the new collection of comments.- Specified by:
commentsin interfaceHasMutableComments- Parameters:
comments- new collection of comments- See Also:
-
add
Description copied from interface:HasMutableCommentsAdds a comment to the list of comments.- Specified by:
addin interfaceHasMutableComments- Parameters:
comment- comment to be added, cannot be null
-
remove
Description copied from interface:HasMutableCommentsRemove the given comment from the list of comments.- Specified by:
removein interfaceHasMutableComments- Parameters:
comment- comment to be removed, cannot be null
-
tags
Description copied from interface:HasTagsReturns the collection of tags for the entity. -
tags
Description copied from interface:HasMutableTagsSet the new collection of tags for the entity.- Specified by:
tagsin interfaceHasMutableTags- Parameters:
tags- new collection of tags- See Also:
-
clear
public void clear()- Specified by:
clearin interfaceHasMutableTags
-
add
Description copied from interface:HasMutableTagsAdd the tag to the collection of tags.- Specified by:
addin interfaceHasMutableTags- Parameters:
tag- tag to be added- Returns:
trueif this collection did not already contain the specified element- See Also:
-
remove
Description copied from interface:HasMutableTagsRemove the tag from the collection of tags.- Specified by:
removein interfaceHasMutableTags- Parameters:
tag- tag to remove- Returns:
trueif this collection contained the specified element- See Also:
-
hashCode
-
equals
-