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
ConstructorsModifierConstructorDescriptionprotected
Value
(Job job, Optional<ScheduledFuture<?>> instant, Optional<ScheduledFuture<?>> cron) Creates an instance of aValue
record class. -
Method Summary
Modifier and TypeMethodDescriptioncron()
Returns the value of thecron
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.instant()
Returns the value of theinstant
record component.job()
Returns the value of thejob
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Value
Creates an instance of aValue
record class.- Parameters:
job
- the value for thejob
record componentinstant
- the value for theinstant
record componentcron
- the value for thecron
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)
. -
job
Returns the value of thejob
record component.- Returns:
- the value of the
job
record component
-
instant
Returns the value of theinstant
record component.- Returns:
- the value of the
instant
record component
-
cron
Returns the value of thecron
record component.- Returns:
- the value of the
cron
record component
-