Class IconOwningObjectId

java.lang.Object
com.atlassian.jira.icon.IconOwningObjectId

@ExperimentalApi public final class IconOwningObjectId extends Object
Represents the id of an entity that has an icon/avatar associated with it.
Since:
7.1
  • Constructor Details

    • IconOwningObjectId

      public IconOwningObjectId(@Nonnull String id)
  • Method Details

    • getId

      @Nonnull public String 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

      @Nonnull public static IconOwningObjectId from(long id)
      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

      @Nonnull public static IconOwningObjectId from(@Nonnull WithId withId)
      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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object