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 Summary
ConstructorsConstructorDescriptionTriggerGroup(long count, String groupByValue, long sumDurationMs, int sumRunCount, OffsetDateTime minRunAt, OffsetDateTime minCreatedTime, OffsetDateTime minStart, OffsetDateTime maxEnd) Creates an instance of aTriggerGrouprecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegroupByValuerecord component.final inthashCode()Returns a hash code value for this object.maxEnd()Returns the value of themaxEndrecord component.Returns the value of theminCreatedTimerecord component.minRunAt()Returns the value of theminRunAtrecord component.minStart()Returns the value of theminStartrecord component.longReturns the value of thesumDurationMsrecord component.intReturns the value of thesumRunCountrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aTriggerGrouprecord class.- Parameters:
count- the value for thecountrecord componentgroupByValue- the value for thegroupByValuerecord componentsumDurationMs- the value for thesumDurationMsrecord componentsumRunCount- the value for thesumRunCountrecord componentminRunAt- the value for theminRunAtrecord componentminCreatedTime- the value for theminCreatedTimerecord componentminStart- the value for theminStartrecord componentmaxEnd- the value for themaxEndrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
count
public long count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
groupByValue
Returns the value of thegroupByValuerecord component.- Returns:
- the value of the
groupByValuerecord component
-
sumDurationMs
public long sumDurationMs()Returns the value of thesumDurationMsrecord component.- Returns:
- the value of the
sumDurationMsrecord component
-
sumRunCount
public int sumRunCount()Returns the value of thesumRunCountrecord component.- Returns:
- the value of the
sumRunCountrecord component
-
minRunAt
Returns the value of theminRunAtrecord component.- Returns:
- the value of the
minRunAtrecord component
-
minCreatedTime
Returns the value of theminCreatedTimerecord component.- Returns:
- the value of the
minCreatedTimerecord component
-
minStart
Returns the value of theminStartrecord component.- Returns:
- the value of the
minStartrecord component
-
maxEnd
Returns the value of themaxEndrecord component.- Returns:
- the value of the
maxEndrecord component
-