com.atlassian.jira.bc.project.version.remotelink
Class RemoteVersionLinkImpl

java.lang.Object
  extended by com.atlassian.jira.entity.remotelink.RemoteEntityLinkImpl<Version>
      extended by com.atlassian.jira.bc.project.version.remotelink.RemoteVersionLinkImpl
All Implemented Interfaces:
RemoteVersionLink, RemoteEntityLink<Version>

public class RemoteVersionLinkImpl
extends RemoteEntityLinkImpl<Version>
implements RemoteVersionLink

Since:
v6.1

Field Summary
 
Fields inherited from class com.atlassian.jira.entity.remotelink.RemoteEntityLinkImpl
APPLICATION, APPLICATION_NAME, APPLICATION_TYPE, globalId, jsonRef, OBJECT, OBJECT_ICON, OBJECT_ICON_TITLE, OBJECT_ICON_URL, OBJECT_SUMMARY, OBJECT_TITLE, OBJECT_URL
 
Fields inherited from interface com.atlassian.jira.entity.remotelink.RemoteEntityLink
GLOBAL_ID
 
Constructor Summary
RemoteVersionLinkImpl(Version version, String globalId, String json)
           
 
Method Summary
 boolean equals(Object o)
           
 Version getEntity()
          Returns the local entity to which the remote entity link is associated.
 Long getEntityId()
          Returns the entity ID for the local entity to which the remote entity link is associated.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class com.atlassian.jira.entity.remotelink.RemoteEntityLinkImpl
getApplicationName, getApplicationType, getGlobalId, getIconTitle, getIconUrl, getJsonString, getSummary, getTitle, getUrl
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.entity.remotelink.RemoteEntityLink
getApplicationName, getApplicationType, getGlobalId, getIconTitle, getIconUrl, getJsonString, getSummary, getTitle, getUrl
 

Constructor Detail

RemoteVersionLinkImpl

public RemoteVersionLinkImpl(@Nonnull
                             Version version,
                             @Nonnull
                             String globalId,
                             @Nonnull
                             String json)
Method Detail

getEntity

public Version getEntity()
Description copied from interface: RemoteEntityLink
Returns the local entity to which the remote entity link is associated. For example, if this is a RemoteVersionLink, then this will return a Version.

Specified by:
getEntity in interface RemoteEntityLink<Version>
Returns:
the local entity to which the remote entity link is associated.

getEntityId

@Nonnull
public Long getEntityId()
Description copied from interface: RemoteEntityLink
Returns the entity ID for the local entity to which the remote entity link is associated. For example, if this is a RemoteVersionLink, then this will be a version ID.

Specified by:
getEntityId in interface RemoteEntityLink<Version>
Returns:
the entity ID for the local entity to which the remote entity link is associated.

equals

public boolean equals(Object o)
Specified by:
equals in class RemoteEntityLinkImpl<Version>

hashCode

public int hashCode()
Specified by:
hashCode in class RemoteEntityLinkImpl<Version>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2014 Atlassian. All Rights Reserved.