Package dev.gmitch215.bytebox
Record Class Cron
java.lang.Object
java.lang.Record
dev.gmitch215.bytebox.Cron
- Record Components:
expression- the cron expression, as written in the Wrangler configurationscheduledAt- when the invocation was due, in milliseconds since the epoch
The Cron Trigger that started a scheduled invocation.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpressionrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thescheduledAtrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Cron
Creates an instance of aCronrecord class.- Parameters:
expression- the value for theexpressionrecord componentscheduledAt- the value for thescheduledAtrecord 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 '=='. -
expression
Returns the value of theexpressionrecord component.- Returns:
- the value of the
expressionrecord component
-
scheduledAt
public long scheduledAt()Returns the value of thescheduledAtrecord component.- Returns:
- the value of the
scheduledAtrecord component
-