Class LikeProperties

  • All Implemented Interfaces:
    java.io.Serializable

    public class LikeProperties
    extends java.lang.Object
    implements java.io.Serializable
    The LikeProperties properties object records a single user's "like" of an asset.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      boolean getIsPublic()
      Return if this like is private to the creating user.
      java.lang.String getUser()
      Return the user id of the person who created the like.
      int hashCode()
      Create a hash code for this element type.
      void setIsPublic​(boolean aPublic)
      Set up whether the like is private to the creating user or not.
      void setUser​(java.lang.String user)
      Set up he user id of the person who created the like.
      java.lang.String toString()
      Standard toString method.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • LikeProperties

        public LikeProperties()
        Default constructor
      • LikeProperties

        public LikeProperties​(LikeProperties template)
        Copy/clone constructor.
        Parameters:
        template - element to copy
    • Method Detail

      • getUser

        public java.lang.String getUser()
        Return the user id of the person who created the like. Null means the user id is not known.
        Returns:
        String liking user
      • setUser

        public void setUser​(java.lang.String user)
        Set up he user id of the person who created the like. Null means the user id is not known.
        Parameters:
        user - String liking user
      • getIsPublic

        public boolean getIsPublic()
        Return if this like is private to the creating user.
        Returns:
        boolean
      • setIsPublic

        public void setIsPublic​(boolean aPublic)
        Set up whether the like is private to the creating user or not.
        Parameters:
        aPublic - boolean
      • toString

        public java.lang.String toString()
        Standard toString method.
        Overrides:
        toString in class java.lang.Object
        Returns:
        print out of variables in a JSON-style
      • equals

        public boolean equals​(java.lang.Object objectToCompare)
        Compare the values of the supplied object with those stored in the current object.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        objectToCompare - supplied object
        Returns:
        boolean result of comparison
      • hashCode

        public int hashCode()
        Create a hash code for this element type.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        int hash code