Package de.bsvrz.ars.ars.mgmt.tasks
Record Class CronTask.CronTaskDefinition
java.lang.Object
java.lang.Record
de.bsvrz.ars.ars.mgmt.tasks.CronTask.CronTaskDefinition
- Record Components:
cronDefinition- Zeitpunkte, wann das runnable ausgeführt werden sollrunnable- Code, der zu den angegebenen Zeitpunkten ausgeführt werden soll
- Enclosing class:
- CronTask
public static record CronTask.CronTaskDefinition(de.bsvrz.dav.daf.util.cron.CronDefinition cronDefinition, Runnable runnable)
extends Record
Kapselt eine
CronTask.CronTaskDefinition zusammen mit einem Code der ausgeführt werden soll-
Constructor Summary
ConstructorsConstructorDescriptionCronTaskDefinition(de.bsvrz.dav.daf.util.cron.CronDefinition cronDefinition, Runnable runnable) Creates an instance of aCronTaskDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionde.bsvrz.dav.daf.util.cron.CronDefinitionReturns the value of thecronDefinitionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.runnable()Returns the value of therunnablerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CronTaskDefinition
public CronTaskDefinition(de.bsvrz.dav.daf.util.cron.CronDefinition cronDefinition, Runnable runnable) Creates an instance of aCronTaskDefinitionrecord class.- Parameters:
cronDefinition- the value for thecronDefinitionrecord componentrunnable- the value for therunnablerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
cronDefinition
public de.bsvrz.dav.daf.util.cron.CronDefinition cronDefinition()Returns the value of thecronDefinitionrecord component.- Returns:
- the value of the
cronDefinitionrecord component
-
runnable
Returns the value of therunnablerecord component.- Returns:
- the value of the
runnablerecord component
-