public class Build extends Object implements Comparable<Build>
| Constructor and Description |
|---|
Build(int number)
Creates a new instance of
Build. |
Build(int number,
String displayName,
int buildTime)
Creates a new instance of
Build. |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Build o) |
boolean |
equals(Object o) |
long |
getBuildTime()
Returns the start time of this build (given as number of seconds since the standard base time known as "the
epoch", namely January 1, 1970, 00:00:00 GMT).
|
String |
getDisplayName()
Returns a human readable label for this build.
|
int |
getNumber()
Returns the number of this build as assigned by Jenkins' scheduler.
|
int |
hashCode() |
String |
toString() |
public Build(int number)
Build.number - build numberpublic Build(int number,
String displayName,
int buildTime)
Build.number - build numberdisplayName - human readable name of the buildbuildTime - the build time (given as number of seconds since the standard base time known as "the epoch", namely
January 1, 1970, 00:00:00 GMT).public long getBuildTime()
public int getNumber()
public String getDisplayName()
public int compareTo(Build o)
compareTo in interface Comparable<Build>Copyright © 2016–2019. All rights reserved.