Package com.atlassian.jira.icon
Class IconOwningObjectId
java.lang.Object
com.atlassian.jira.icon.IconOwningObjectId
Represents the id of an entity that has an icon/avatar associated with it.
- Since:
- 7.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic IconOwningObjectIdfrom(long id) Creates an IconOwningObjectId from the given numeric ID.static IconOwningObjectIdCreates an IconOwningObjectId from the given entity.getId()Returns the ID of the owner object.inthashCode()toString()
-
Constructor Details
-
IconOwningObjectId
-
-
Method Details
-
getId
Returns the ID of the owner object.eg for Project this will be the String representation of the Project ID, for User this will be the user key.
- Returns:
- the ID of the owner object.
-
from
Creates an IconOwningObjectId from the given numeric ID.- Parameters:
id- the numeric ID- Returns:
- an IconOwningObjectId which contains a String representation of the given numeric ID.
-
from
Creates an IconOwningObjectId from the given entity.- Parameters:
withId- the numeric ID- Returns:
- an IconOwningObjectId which contains a String representation of the ID of the given entity.
-
equals
-
hashCode
public int hashCode() -
toString
-