com.sonyericsson.hudson.plugins.gerrit.trigger.gerritnotifier.model
Class BuildMemory.PatchSetKey

java.lang.Object
  extended by com.sonyericsson.hudson.plugins.gerrit.trigger.gerritnotifier.model.BuildMemory.PatchSetKey
All Implemented Interfaces:
Comparable<BuildMemory.PatchSetKey>
Enclosing class:
BuildMemory

public static final class BuildMemory.PatchSetKey
extends Object
implements Comparable<BuildMemory.PatchSetKey>

The Key to use to map events and builds.


Constructor Summary
BuildMemory.PatchSetKey(Integer changeNumber, Integer patchSetNumber)
          Constructs a Key.
BuildMemory.PatchSetKey(String changeNumber, String patchSetNumber)
          Constructs a Key.
 
Method Summary
 int compareTo(BuildMemory.PatchSetKey o)
           
 boolean equals(Object obj)
           
 Integer getChangeNumber()
          The Gerrit change number.
 Integer getPatchSetNumber()
          The Gerrit patch-set number.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildMemory.PatchSetKey

public BuildMemory.PatchSetKey(Integer changeNumber,
                               Integer patchSetNumber)
Constructs a Key.

Parameters:
changeNumber - the Gerrit changeNumber
patchSetNumber - the Gerrit patch-set number.

BuildMemory.PatchSetKey

public BuildMemory.PatchSetKey(String changeNumber,
                               String patchSetNumber)
                        throws NumberFormatException
Constructs a Key.

Parameters:
changeNumber - the Gerrit changeNumber
patchSetNumber - the Gerrit patch-set number.
Throws:
NumberFormatException - if one of the parameters is not parseable to an Integer.
Method Detail

getChangeNumber

public Integer getChangeNumber()
The Gerrit change number.

Returns:
the Gerrit change number.

getPatchSetNumber

public Integer getPatchSetNumber()
The Gerrit patch-set number.

Returns:
the Gerrit patch-set number.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(BuildMemory.PatchSetKey o)
Specified by:
compareTo in interface Comparable<BuildMemory.PatchSetKey>


Copyright © 2004-2011. All Rights Reserved.