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.WatchdogServiceCheckConfig
The field for thecheck
record component.private final @Nullable WatchdogService.WatchdogServiceReportConfig
The field for thereport
record component. -
Constructor Summary
ConstructorsConstructorDescriptionWatchdogServiceConfig
(@Nullable WatchdogService.WatchdogServiceCheckConfig check, @Nullable WatchdogService.WatchdogServiceReportConfig report) Creates an instance of aWatchdogServiceConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptioncheck()
Returns the value of thecheck
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.report()
Returns the value of thereport
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
check
The field for thecheck
record component. -
report
The field for thereport
record component.
-
-
Constructor Details
-
WatchdogServiceConfig
public WatchdogServiceConfig(@Nullable WatchdogService.WatchdogServiceCheckConfig check, @Nullable WatchdogService.WatchdogServiceReportConfig report) Creates an instance of aWatchdogServiceConfig
record class.- Parameters:
check
- the value for thecheck
record componentreport
- the value for thereport
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)
. -
check
Returns the value of thecheck
record component.- Returns:
- the value of the
check
record component
-
report
Returns the value of thereport
record component.- Returns:
- the value of the
report
record component
-