Class EntityExtendedImp
java.lang.Object
net.tangly.core.EntityExtendedImp
- All Implemented Interfaces:
Entity
,EntityExtended
,HasComments
,HasDateRange
,HasId
,HasName
,HasOid
,HasTags
,HasText
Default implementation of the
EntityExtended
interface. The unique object identifier shall be set at construction.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.tangly.core.HasDateRange
HasDateRange.RangeFilter<T extends HasDateRange>
-
Field Summary
Fields inherited from interface net.tangly.core.HasDateRange
FROM, TO
Fields inherited from interface net.tangly.core.HasOid
OID, UNDEFINED_OID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncomments()
Return the collection of comments owned by the entity.boolean
int
hashCode()
id()
Return the unique external identifier of the instance.static <T extends MutableEntityExtended>
Tname()
long
oid()
Return the unique internal identifier of the instance.range()
Return the range of the mixin.tags()
Returns the collection of tags for the entity.text()
Return the human-readable text description of the instance.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.tangly.core.HasComments
findByAuthor, findByTag, findByTime
Methods inherited from interface net.tangly.core.HasDateRange
from, isActive, isActive, to
Methods inherited from interface net.tangly.core.HasTags
containsTag, containsTag, findBy, findBy, findByNamespace, rawTags, value, value
-
Constructor Details
-
EntityExtendedImp
protected EntityExtendedImp(long oid)
-
-
Method Details
-
init
-
oid
-
id
-
name
-
range
Description copied from interface:HasDateRange
Return the range of the mixin.- Specified by:
range
in interfaceHasDateRange
- Returns:
- date range of the mixin
-
text
-
comments
Description copied from interface:HasComments
Return the collection of comments owned by the entity.- Specified by:
comments
in interfaceHasComments
- Returns:
- list of comments
-
tags
Description copied from interface:HasTags
Returns the collection of tags for the entity. -
hashCode
-
equals
-