Record Class ConsolidatedRuns.Target
java.lang.Object
java.lang.Record
se.diabol.jenkins.pipeline.consolidated.ConsolidatedRuns.Target
- Record Components:
estimate- how long the pipeline took the last time it ran to its end, in milliseconds, or -1; it is what the expected end of the run goes by until the pipeline has been through a run of its own
- Enclosing class:
ConsolidatedRuns
public static record ConsolidatedRuns.Target(String name, String jobFullName, String lastJobFullName, long estimate)
extends Record
A pipeline a run is started with.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longestimate()Returns the value of theestimaterecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thejobFullNamerecord component.Returns the value of thelastJobFullNamerecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Target
-
Target
Creates an instance of aTargetrecord class.- Parameters:
name- the value for thenamerecord componentjobFullName- the value for thejobFullNamerecord componentlastJobFullName- the value for thelastJobFullNamerecord componentestimate- the value for theestimaterecord 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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
jobFullName
Returns the value of thejobFullNamerecord component.- Returns:
- the value of the
jobFullNamerecord component
-
lastJobFullName
Returns the value of thelastJobFullNamerecord component.- Returns:
- the value of the
lastJobFullNamerecord component
-
estimate
public long estimate()Returns the value of theestimaterecord component.- Returns:
- the value of the
estimaterecord component
-