Package ch.rswk.meta.engine
Record Class WatchdogService.WatchdogServiceConfig
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.WatchdogService.WatchdogServiceConfig
- Enclosing class:
WatchdogService
public static record WatchdogService.WatchdogServiceConfig(@Nullable WatchdogService.WatchdogServiceCheckConfig check, @Nullable WatchdogService.WatchdogServiceReportConfig report)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable WatchdogService.WatchdogServiceCheckConfigThe field for thecheckrecord component.private final @Nullable WatchdogService.WatchdogServiceReportConfigThe field for thereportrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionWatchdogServiceConfig(@Nullable WatchdogService.WatchdogServiceCheckConfig check, @Nullable WatchdogService.WatchdogServiceReportConfig report) Creates an instance of aWatchdogServiceConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncheck()Returns the value of thecheckrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.report()Returns the value of thereportrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
check
The field for thecheckrecord component. -
report
The field for thereportrecord component.
-
-
Constructor Details
-
WatchdogServiceConfig
public WatchdogServiceConfig(@Nullable WatchdogService.WatchdogServiceCheckConfig check, @Nullable WatchdogService.WatchdogServiceReportConfig report) Creates an instance of aWatchdogServiceConfigrecord class.- Parameters:
check- the value for thecheckrecord componentreport- the value for thereportrecord 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). -
check
Returns the value of thecheckrecord component.- Returns:
- the value of the
checkrecord component
-
report
Returns the value of thereportrecord component.- Returns:
- the value of the
reportrecord component
-