Record Class AppConfig.ScanSettings
java.lang.Object
java.lang.Record
dev.despical.spigotsaleswebhook.config.AppConfig.ScanSettings
- Enclosing class:
AppConfig
-
Constructor Summary
ConstructorsConstructorDescriptionScanSettings(Duration interval, boolean notifyExistingOnFirstRun, Path stateFile) Creates an instance of aScanSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.interval()Returns the value of theintervalrecord component.booleanReturns the value of thenotifyExistingOnFirstRunrecord component.Returns the value of thestateFilerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScanSettings
Creates an instance of aScanSettingsrecord class.- Parameters:
interval- the value for theintervalrecord componentnotifyExistingOnFirstRun- the value for thenotifyExistingOnFirstRunrecord componentstateFile- the value for thestateFilerecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
interval
Returns the value of theintervalrecord component.- Returns:
- the value of the
intervalrecord component
-
notifyExistingOnFirstRun
public boolean notifyExistingOnFirstRun()Returns the value of thenotifyExistingOnFirstRunrecord component.- Returns:
- the value of the
notifyExistingOnFirstRunrecord component
-
stateFile
Returns the value of thestateFilerecord component.- Returns:
- the value of the
stateFilerecord component
-