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 aTriggerGroup
record class. -
Method Summary
Modifier and TypeMethodDescriptionlong
count()
Returns the value of thecount
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thegroupByValue
record component.final int
hashCode()
Returns a hash code value for this object.maxEnd()
Returns the value of themaxEnd
record component.Returns the value of theminCreatedTime
record component.minRunAt()
Returns the value of theminRunAt
record component.minStart()
Returns the value of theminStart
record component.long
Returns the value of thesumDurationMs
record component.int
Returns the value of thesumRunCount
record component.final String
toString()
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 aTriggerGroup
record class.- Parameters:
count
- the value for thecount
record componentgroupByValue
- the value for thegroupByValue
record componentsumDurationMs
- the value for thesumDurationMs
record componentsumRunCount
- the value for thesumRunCount
record componentminRunAt
- the value for theminRunAt
record componentminCreatedTime
- the value for theminCreatedTime
record componentminStart
- the value for theminStart
record componentmaxEnd
- the value for themaxEnd
record 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 thecount
record component.- Returns:
- the value of the
count
record component
-
groupByValue
Returns the value of thegroupByValue
record component.- Returns:
- the value of the
groupByValue
record component
-
sumDurationMs
public long sumDurationMs()Returns the value of thesumDurationMs
record component.- Returns:
- the value of the
sumDurationMs
record component
-
sumRunCount
public int sumRunCount()Returns the value of thesumRunCount
record component.- Returns:
- the value of the
sumRunCount
record component
-
minRunAt
Returns the value of theminRunAt
record component.- Returns:
- the value of the
minRunAt
record component
-
minCreatedTime
Returns the value of theminCreatedTime
record component.- Returns:
- the value of the
minCreatedTime
record component
-
minStart
Returns the value of theminStart
record component.- Returns:
- the value of the
minStart
record component
-
maxEnd
Returns the value of themaxEnd
record component.- Returns:
- the value of the
maxEnd
record component
-