jetbrains.buildServer.serverSide.statistics.build
Class BuildValue

java.lang.Object
  extended by java.lang.Number
      extended by jetbrains.buildServer.serverSide.statistics.build.BuildValue
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AverageBuildValue

public class BuildValue
extends java.lang.Number

This class holds metric value and attributes of corresponding build

See Also:
Serialized Form

Nested Class Summary
static class BuildValue.BuildNumberComparator
           
 
Field Summary
protected  long myBuildId
           
protected  java.lang.String myBuildNumber
           
protected  java.lang.String myBuildTypeId
           
protected  long myDuration
           
protected  boolean myFailed
           
protected  boolean myLinkable
           
protected  java.lang.String mySeries
           
protected  long myStartTime
           
protected  java.math.BigDecimal myValue
           
 
Constructor Summary
BuildValue(long buildId, java.math.BigDecimal value, java.lang.String buildNumber, java.lang.String buildTypeId, java.lang.String series, long startTime, long duration, boolean linkable, boolean failed, java.lang.String statusText)
           
 
Method Summary
 BuildValue clone()
           
 double doubleValue()
           
 float floatValue()
           
 long getBuildId()
           
 java.lang.String getBuildNumber()
           
 java.lang.String getBuildTypeId()
           
 java.lang.String getBuildTypeName()
           
 long getDuration()
           
 java.lang.String getSeries()
           
 long getStartTime()
           
 java.lang.String getStatusText()
           
 java.math.BigDecimal getValue()
           
 int intValue()
           
 boolean isFailed()
           
 boolean isLinkable()
           
 long longValue()
           
 void setBuildId(long buildId)
           
 void setBuildNumber(java.lang.String buildNumber)
           
 void setBuildTypeId(java.lang.String buildTypeId)
           
 void setBuildTypeName(java.lang.String buildTypeName)
           
 void setDuration(long duration)
           
 void setFailed(boolean failed)
           
 void setLinkable(boolean linkable)
           
 void setSeries(java.lang.String series)
           
 void setStartTime(long startTime)
           
 void setValue(java.math.BigDecimal value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

myValue

protected java.math.BigDecimal myValue

myBuildId

protected long myBuildId

myDuration

protected long myDuration

myBuildNumber

protected java.lang.String myBuildNumber

myBuildTypeId

protected java.lang.String myBuildTypeId

mySeries

protected java.lang.String mySeries

myStartTime

protected long myStartTime

myLinkable

protected boolean myLinkable

myFailed

protected boolean myFailed
Constructor Detail

BuildValue

public BuildValue(long buildId,
                  java.math.BigDecimal value,
                  java.lang.String buildNumber,
                  java.lang.String buildTypeId,
                  @NotNull
                  java.lang.String series,
                  long startTime,
                  long duration,
                  boolean linkable,
                  boolean failed,
                  java.lang.String statusText)
Method Detail

clone

public BuildValue clone()
Overrides:
clone in class java.lang.Object

getValue

public java.math.BigDecimal getValue()

getBuildId

public long getBuildId()

getBuildNumber

public java.lang.String getBuildNumber()

getBuildTypeId

public java.lang.String getBuildTypeId()

getStartTime

public long getStartTime()

getDuration

public long getDuration()

setValue

public void setValue(java.math.BigDecimal value)

setBuildId

public void setBuildId(long buildId)

setDuration

public void setDuration(long duration)

setBuildNumber

public void setBuildNumber(java.lang.String buildNumber)

setBuildTypeId

public void setBuildTypeId(java.lang.String buildTypeId)

setStartTime

public void setStartTime(long startTime)

isLinkable

public boolean isLinkable()

setLinkable

public void setLinkable(boolean linkable)

getSeries

public java.lang.String getSeries()

setSeries

public void setSeries(java.lang.String series)

isFailed

public boolean isFailed()

setFailed

public void setFailed(boolean failed)

getBuildTypeName

public java.lang.String getBuildTypeName()

setBuildTypeName

public void setBuildTypeName(java.lang.String buildTypeName)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

intValue

public int intValue()
Specified by:
intValue in class java.lang.Number

longValue

public long longValue()
Specified by:
longValue in class java.lang.Number

floatValue

public float floatValue()
Specified by:
floatValue in class java.lang.Number

doubleValue

public double doubleValue()
Specified by:
doubleValue in class java.lang.Number

getStatusText

public java.lang.String getStatusText()