Class LikeProperties
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataRootProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.feedback.LikeProperties
The LikeProperties object records a single user's "like" of an element.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorLikeProperties
(LikeProperties template) Copy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.getUser()
Return the user id of the person who created the like.int
hashCode()
Hash of propertiesvoid
Set up the user id of the person who created the like.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataRootProperties
getEffectiveFrom, getEffectiveTo, getExtendedProperties, getTypeName, setEffectiveFrom, setEffectiveTo, setExtendedProperties, setTypeName
-
Constructor Details
-
LikeProperties
public LikeProperties()Default constructor -
LikeProperties
Copy/clone constructor.- Parameters:
template
- element to copy
-
-
Method Details
-
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
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
Standard toString method.- Overrides:
toString
in classOpenMetadataRootProperties
- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classOpenMetadataRootProperties
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Hash of properties- Overrides:
hashCode
in classOpenMetadataRootProperties
- Returns:
- int
-