java.lang.Object
org.odpi.openmetadata.accessservices.assetmanager.properties.LikeProperties

public class LikeProperties extends Object
The LikeProperties object records a single user's "like" of an element.
  • Constructor Details

    • LikeProperties

      public LikeProperties()
      Default constructor
    • LikeProperties

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

    • getUser

      public 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(String user)
      Set up the user id of the person who created the like. Null means the user id is not known.
      Parameters:
      user - String liking user
    • toString

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

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

      public int hashCode()
      Hash of properties
      Overrides:
      hashCode in class Object
      Returns:
      int