Record Class SyncopeTaskScheduler.Value
java.lang.Object
java.lang.Record
org.apache.syncope.core.provisioning.java.job.SyncopeTaskScheduler.Value
- Enclosing class:
SyncopeTaskScheduler
protected static record SyncopeTaskScheduler.Value(Job job, Optional<ScheduledFuture<?>> instant, Optional<ScheduledFuture<?>> cron)
extends Record
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedValue(Job job, Optional<ScheduledFuture<?>> instant, Optional<ScheduledFuture<?>> cron) Creates an instance of aValuerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncron()Returns the value of thecronrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.instant()Returns the value of theinstantrecord component.job()Returns the value of thejobrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Value
Creates an instance of aValuerecord class.- Parameters:
job- the value for thejobrecord componentinstant- the value for theinstantrecord componentcron- the value for thecronrecord 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). -
job
Returns the value of thejobrecord component.- Returns:
- the value of the
jobrecord component
-
instant
Returns the value of theinstantrecord component.- Returns:
- the value of the
instantrecord component
-
cron
Returns the value of thecronrecord component.- Returns:
- the value of the
cronrecord component
-