Record Class BuildInfo
java.lang.Object
java.lang.Record
org.jenkinsci.plugins.testresultsanalyzer.result.info.BuildInfo
- Record Components:
number- the build numberdisplayName- the display name of the build,#numberunless it was changedtimestamp- when the build was scheduled, in milliseconds since the epochurl- the absolute URL of the build
What the analyzer page shows about a build besides its number, so builds can be labelled by name or date.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intnumber()Returns the value of thenumberrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
BuildInfo
public BuildInfo(int number, @CheckForNull String displayName, long timestamp, @CheckForNull String url) Creates an instance of aBuildInforecord class.- Parameters:
number- the value for thenumberrecord componentdisplayName- the value for thedisplayNamerecord componenttimestamp- the value for thetimestamprecord componenturl- the value for theurlrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
number
public int number()Returns the value of thenumberrecord component.- Returns:
- the value of the
numberrecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
timestamp
public long timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-