Record Class TriggerGroup

java.lang.Object
java.lang.Record
org.sterl.spring.persistent_tasks.api.TriggerGroup

public record TriggerGroup(long count, String groupByValue, long sumDurationMs, int sumRunCount, OffsetDateTime minRunAt, OffsetDateTime minCreatedTime, OffsetDateTime minStart, OffsetDateTime maxEnd) extends Record
  • Constructor Details

    • TriggerGroup

      public TriggerGroup(long count, String groupByValue, long sumDurationMs, int sumRunCount, OffsetDateTime minRunAt, OffsetDateTime minCreatedTime, OffsetDateTime minStart, OffsetDateTime maxEnd)
      Creates an instance of a TriggerGroup record class.
      Parameters:
      count - the value for the count record component
      groupByValue - the value for the groupByValue record component
      sumDurationMs - the value for the sumDurationMs record component
      sumRunCount - the value for the sumRunCount record component
      minRunAt - the value for the minRunAt record component
      minCreatedTime - the value for the minCreatedTime record component
      minStart - the value for the minStart record component
      maxEnd - the value for the maxEnd 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.
    • count

      public long count()
      Returns the value of the count record component.
      Returns:
      the value of the count record component
    • groupByValue

      public String groupByValue()
      Returns the value of the groupByValue record component.
      Returns:
      the value of the groupByValue record component
    • sumDurationMs

      public long sumDurationMs()
      Returns the value of the sumDurationMs record component.
      Returns:
      the value of the sumDurationMs record component
    • sumRunCount

      public int sumRunCount()
      Returns the value of the sumRunCount record component.
      Returns:
      the value of the sumRunCount record component
    • minRunAt

      public OffsetDateTime minRunAt()
      Returns the value of the minRunAt record component.
      Returns:
      the value of the minRunAt record component
    • minCreatedTime

      public OffsetDateTime minCreatedTime()
      Returns the value of the minCreatedTime record component.
      Returns:
      the value of the minCreatedTime record component
    • minStart

      public OffsetDateTime minStart()
      Returns the value of the minStart record component.
      Returns:
      the value of the minStart record component
    • maxEnd

      public OffsetDateTime maxEnd()
      Returns the value of the maxEnd record component.
      Returns:
      the value of the maxEnd record component