Class Category

  • All Implemented Interfaces:
    Serializable

    public class Category
    extends Object
    implements Serializable
    A reference to a category, typically used as a holder for information communicated from an external service.
    Author:
    Chad Harchar (charchar)
    See Also:
    Serialized Form
    • Constructor Detail

      • Category

        public Category()
    • Method Detail

      • addAttribute

        public void addAttribute​(String name,
                                 Object value)
        Takes in any additional attributes passed in the request not matching any defined properties.
        Parameters:
        name - Name of the additional attribute
        value - Value of the additional attribute
      • getAttribute

        public Map<String,​Object> getAttribute()
        Return any additional attributes passed in the request not matching any defined properties.
        Returns:
        any additional attributes passed in the request not matching any defined properties.
      • getId

        public String getId()
        The primary id of the category.
        Returns:
        The primary id of the category.
      • getName

        public String getName()
        The name of the category.
        Returns:
        The name of the category.
      • getUrl

        public String getUrl()
        The url of the category.
        Returns:
        The url of the category.
      • getAttributes

        public Map<String,​Object> getAttributes()
        Map holding any additional attributes passed in the request not matching any defined properties.
      • setId

        public void setId​(String id)
        The primary id of the category.
        Parameters:
        id - The primary id of the category.
      • setName

        public void setName​(String name)
        The name of the category.
        Parameters:
        name - The name of the category.
      • setUrl

        public void setUrl​(String url)
        The url of the category.
        Parameters:
        url - The url of the category.
      • setAttributes

        public void setAttributes​(Map<String,​Object> attributes)
        Map holding any additional attributes passed in the request not matching any defined properties.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object