com.atlassian.jira.event.project
Class VersionMergeEvent

java.lang.Object
  extended by com.atlassian.jira.event.project.AbstractVersionEvent
      extended by com.atlassian.jira.event.project.VersionMergeEvent

public class VersionMergeEvent
extends AbstractVersionEvent

Event indicating a version has been merged into another

Since:
v4.4

Constructor Summary
VersionMergeEvent(Version version, Version mergedVersion)
           
 
Method Summary
 boolean equals(Object o)
           
 Version getMergedVersion()
           
 long getMergedVersionId()
          Get the ID of the version that was merged into this version.
 int hashCode()
           
 
Methods inherited from class com.atlassian.jira.event.project.AbstractVersionEvent
getVersion, getVersionId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionMergeEvent

@Internal
public VersionMergeEvent(@Nonnull
                                  Version version,
                                  @Nonnull
                                  Version mergedVersion)
Method Detail

getMergedVersionId

public long getMergedVersionId()
Get the ID of the version that was merged into this version. Note that the version for this ID will no longer exist when this event is published.

Returns:
The ID of the version that was merged into this version

getMergedVersion

@Nonnull
public Version getMergedVersion()

equals

public boolean equals(Object o)
Overrides:
equals in class AbstractVersionEvent

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractVersionEvent


Copyright © 2002-2014 Atlassian. All Rights Reserved.