Record Class SchedulerOptions
java.lang.Object
java.lang.Record
me.despical.kotl.arena.managers.schedulers.SchedulerOptions
- Author:
- Despical
Created at 14.01.2024
-
Constructor Summary
ConstructorsConstructorDescriptionSchedulerOptions(boolean async, int interval) Creates an instance of aSchedulerOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanasync()Returns the value of theasyncrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intinterval()Returns the value of theintervalrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SchedulerOptions
public SchedulerOptions(boolean async, int interval) Creates an instance of aSchedulerOptionsrecord class.- Parameters:
async- the value for theasyncrecord componentinterval- the value for theintervalrecord 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 with '=='. -
async
public boolean async()Returns the value of theasyncrecord component.- Returns:
- the value of the
asyncrecord component
-
interval
public int interval()Returns the value of theintervalrecord component.- Returns:
- the value of the
intervalrecord component
-