Record Class RunDetails

java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.RunDetails

public record RunDetails(UUID id, UUID experimentId, String experimentName, String projectName, RunStatus status, Map<String,Object> config, long totalItems, long passedItems, Double passRate, Instant startedAt, Instant completedAt, org.springframework.data.domain.Page<RunDetails.ItemSummary> items) extends Record
  • Constructor Details

    • RunDetails

      public RunDetails(UUID id, UUID experimentId, String experimentName, String projectName, RunStatus status, Map<String,Object> config, long totalItems, long passedItems, Double passRate, Instant startedAt, Instant completedAt, org.springframework.data.domain.Page<RunDetails.ItemSummary> items)
      Creates an instance of a RunDetails record class.
      Parameters:
      id - the value for the id record component
      experimentId - the value for the experimentId record component
      experimentName - the value for the experimentName record component
      projectName - the value for the projectName record component
      status - the value for the status record component
      config - the value for the config record component
      totalItems - the value for the totalItems record component
      passedItems - the value for the passedItems record component
      passRate - the value for the passRate record component
      startedAt - the value for the startedAt record component
      completedAt - the value for the completedAt record component
      items - the value for the items 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.
    • id

      public UUID id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • experimentId

      public UUID experimentId()
      Returns the value of the experimentId record component.
      Returns:
      the value of the experimentId record component
    • experimentName

      public String experimentName()
      Returns the value of the experimentName record component.
      Returns:
      the value of the experimentName record component
    • projectName

      public String projectName()
      Returns the value of the projectName record component.
      Returns:
      the value of the projectName record component
    • status

      public RunStatus status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • config

      public Map<String,Object> config()
      Returns the value of the config record component.
      Returns:
      the value of the config record component
    • totalItems

      public long totalItems()
      Returns the value of the totalItems record component.
      Returns:
      the value of the totalItems record component
    • passedItems

      public long passedItems()
      Returns the value of the passedItems record component.
      Returns:
      the value of the passedItems record component
    • passRate

      public Double passRate()
      Returns the value of the passRate record component.
      Returns:
      the value of the passRate record component
    • startedAt

      public Instant startedAt()
      Returns the value of the startedAt record component.
      Returns:
      the value of the startedAt record component
    • completedAt

      public Instant completedAt()
      Returns the value of the completedAt record component.
      Returns:
      the value of the completedAt record component
    • items

      public org.springframework.data.domain.Page<RunDetails.ItemSummary> items()
      Returns the value of the items record component.
      Returns:
      the value of the items record component