Class TermsDataEntity

  • All Implemented Interfaces:
    IFilterable

    public class TermsDataEntity
    extends DataEntity
    TermsDataEntity.
    • Field Detail

      • title

        public final String title
        The title of the article.
      • body

        public final String body
        The body of the article.
    • Constructor Detail

      • TermsDataEntity

        public TermsDataEntity​(String title,
                               String body)
        Constructs an TermsDataEntity object.
        Parameters:
        title - the title of the article
        body - the body of the article
    • Method Detail

      • toString

        public String toString()
        Returns a formatted string.
        Overrides:
        toString in class Object
        Returns:
        a formatted string
      • contains

        public boolean contains​(String s)
        Filters the object by a string.
        Specified by:
        contains in interface IFilterable
        Overrides:
        contains in class DataEntity
        Parameters:
        s - the string to filter by
        Returns:
        true if the object respects the filter, false otherwise