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 Details

    • Target

      public Target(String name, String jobFullName, String lastJobFullName)
    • Target

      public Target(String name, String jobFullName, String lastJobFullName, long estimate)
      Creates an instance of a Target record class.
      Parameters:
      name - the value for the name record component
      jobFullName - the value for the jobFullName record component
      lastJobFullName - the value for the lastJobFullName record component
      estimate - the value for the estimate record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • jobFullName

      public String jobFullName()
      Returns the value of the jobFullName record component.
      Returns:
      the value of the jobFullName record component
    • lastJobFullName

      public String lastJobFullName()
      Returns the value of the lastJobFullName record component.
      Returns:
      the value of the lastJobFullName record component
    • estimate

      public long estimate()
      Returns the value of the estimate record component.
      Returns:
      the value of the estimate record component