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 aCronTaskDefinition
record class. -
Method Summary
Modifier and TypeMethodDescriptionde.bsvrz.dav.daf.util.cron.CronDefinition
Returns the value of thecronDefinition
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.runnable()
Returns the value of therunnable
record component.final String
toString()
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 aCronTaskDefinition
record class.- Parameters:
cronDefinition
- the value for thecronDefinition
record componentrunnable
- the value for therunnable
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. 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 thecronDefinition
record component.- Returns:
- the value of the
cronDefinition
record component
-
runnable
Returns the value of therunnable
record component.- Returns:
- the value of the
runnable
record component
-