Class ExternalEntityImp

java.lang.Object
net.tangly.core.ExternalEntityImp
All Implemented Interfaces:
ExternalEntity, HasComments, HasDate, HasId, HasName, HasTags, HasText

public abstract class ExternalEntityImp extends Object implements ExternalEntity
  • Constructor Details

  • Method Details

    • id

      public String id()
      Description copied from interface: HasId
      Return the unique external identifier of the instance.
      Specified by:
      id in interface HasId
      Returns:
      unique external identifier
    • name

      public String name()
      Specified by:
      name in interface HasName
    • text

      public String text()
      Description copied from interface: HasText
      Return the human-readable text description of the instance.
      Specified by:
      text in interface HasText
      Returns:
      human-readable text description of the instance
    • date

      public LocalDate date()
      Description copied from interface: HasDate
      Returns the date of entity.
      Specified by:
      date in interface HasDate
      Returns:
      the date of the entity
    • comments

      public Collection<Comment> comments()
      Description copied from interface: HasComments
      Return the collection of comments owned by the entity.
      Specified by:
      comments in interface HasComments
      Returns:
      list of comments
    • tags

      public Collection<Tag> tags()
      Description copied from interface: HasTags
      Returns the collection of tags for the entity.
      Specified by:
      tags in interface HasTags
      Returns:
      collection of tags
    • tags

      public void tags(@NotNull @NotNull Collection<Tag> tags)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object