Record Class DashboardStatsService.DashboardSummary

java.lang.Object
java.lang.Record
com.knezevic.edaf.v3.web.service.DashboardStatsService.DashboardSummary
Enclosing class:
DashboardStatsService

public static record DashboardStatsService.DashboardSummary(long experimentCount, long runCount, long totalRuntimeMillis, Long databaseSizeBytes, Double databaseSizeGb, String databaseSizeDisplay, String experimentCountDisplay, String runCountDisplay, String totalRuntimeMillisDisplay) extends Record
Header summary payload DTO.
  • Constructor Details

    • DashboardSummary

      public DashboardSummary(long experimentCount, long runCount, long totalRuntimeMillis, Long databaseSizeBytes, Double databaseSizeGb, String databaseSizeDisplay, String experimentCountDisplay, String runCountDisplay, String totalRuntimeMillisDisplay)
      Creates an instance of a DashboardSummary record class.
      Parameters:
      experimentCount - the value for the experimentCount record component
      runCount - the value for the runCount record component
      totalRuntimeMillis - the value for the totalRuntimeMillis record component
      databaseSizeBytes - the value for the databaseSizeBytes record component
      databaseSizeGb - the value for the databaseSizeGb record component
      databaseSizeDisplay - the value for the databaseSizeDisplay record component
      experimentCountDisplay - the value for the experimentCountDisplay record component
      runCountDisplay - the value for the runCountDisplay record component
      totalRuntimeMillisDisplay - the value for the totalRuntimeMillisDisplay 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 the compare method from their corresponding wrapper classes.
      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.
    • experimentCount

      public long experimentCount()
      Returns the value of the experimentCount record component.
      Returns:
      the value of the experimentCount record component
    • runCount

      public long runCount()
      Returns the value of the runCount record component.
      Returns:
      the value of the runCount record component
    • totalRuntimeMillis

      public long totalRuntimeMillis()
      Returns the value of the totalRuntimeMillis record component.
      Returns:
      the value of the totalRuntimeMillis record component
    • databaseSizeBytes

      public Long databaseSizeBytes()
      Returns the value of the databaseSizeBytes record component.
      Returns:
      the value of the databaseSizeBytes record component
    • databaseSizeGb

      public Double databaseSizeGb()
      Returns the value of the databaseSizeGb record component.
      Returns:
      the value of the databaseSizeGb record component
    • databaseSizeDisplay

      public String databaseSizeDisplay()
      Returns the value of the databaseSizeDisplay record component.
      Returns:
      the value of the databaseSizeDisplay record component
    • experimentCountDisplay

      public String experimentCountDisplay()
      Returns the value of the experimentCountDisplay record component.
      Returns:
      the value of the experimentCountDisplay record component
    • runCountDisplay

      public String runCountDisplay()
      Returns the value of the runCountDisplay record component.
      Returns:
      the value of the runCountDisplay record component
    • totalRuntimeMillisDisplay

      public String totalRuntimeMillisDisplay()
      Returns the value of the totalRuntimeMillisDisplay record component.
      Returns:
      the value of the totalRuntimeMillisDisplay record component