Record Class ScheduledHandlers.ScheduledHandler
java.lang.Object
java.lang.Record
dev.voidframework.scheduler.module.ScheduledHandlers.ScheduledHandler
- Record Components:
classType- The class typemethod- The method from the classscheduledAnnotation- The scheduled annotation
- Enclosing class:
- ScheduledHandlers
public static record ScheduledHandlers.ScheduledHandler(Class<?> classType, Method method, Scheduled scheduledAnnotation)
extends Record
A single scheduled method handler.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionScheduledHandler(Class<?> classType, Method method, Scheduled scheduledAnnotation) Creates an instance of aScheduledHandlerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionClass<?>Returns the value of theclassTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.Returns the value of thescheduledAnnotationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScheduledHandler
Creates an instance of aScheduledHandlerrecord class.- Parameters:
classType- the value for theclassTyperecord componentmethod- the value for themethodrecord componentscheduledAnnotation- the value for thescheduledAnnotationrecord 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). -
classType
Returns the value of theclassTyperecord component.- Returns:
- the value of the
classTyperecord component
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
scheduledAnnotation
Returns the value of thescheduledAnnotationrecord component.- Returns:
- the value of the
scheduledAnnotationrecord component
-