Record Class Endurance.Result

java.lang.Object
java.lang.Record
org.acemq.workloads.endurance.Endurance.Result
Enclosing class:
Endurance

public static record Endurance.Result(String stamp, Verdict verdict, Path report, Path json, Path readings, List<Reading> all) extends Record
What the run found and where it wrote it.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Result(String stamp, Verdict verdict, Path report, Path json, Path readings, List<Reading> all)
    Creates an instance of a Result record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    all()
    Returns the value of the all record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the json record component.
    Returns the value of the readings record component.
    Returns the value of the report record component.
    Returns the value of the stamp record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the verdict record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Result

      public Result(String stamp, Verdict verdict, Path report, Path json, Path readings, List<Reading> all)
      Creates an instance of a Result record class.
      Parameters:
      stamp - the value for the stamp record component
      verdict - the value for the verdict record component
      report - the value for the report record component
      json - the value for the json record component
      readings - the value for the readings record component
      all - the value for the all 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • stamp

      public String stamp()
      Returns the value of the stamp record component.
      Returns:
      the value of the stamp record component
    • verdict

      public Verdict verdict()
      Returns the value of the verdict record component.
      Returns:
      the value of the verdict record component
    • report

      public Path report()
      Returns the value of the report record component.
      Returns:
      the value of the report record component
    • json

      public Path json()
      Returns the value of the json record component.
      Returns:
      the value of the json record component
    • readings

      public Path readings()
      Returns the value of the readings record component.
      Returns:
      the value of the readings record component
    • all

      public List<Reading> all()
      Returns the value of the all record component.
      Returns:
      the value of the all record component