Record Class ValidatorConfig.CheckableConfig
java.lang.Object
java.lang.Record
io.openems.edge.core.appmanager.validator.ValidatorConfig.CheckableConfig
- Enclosing class:
ValidatorConfig
-
Constructor Summary
ConstructorDescriptionCheckableConfig
(String checkableComponentName, boolean invertResult, Map<String, ?> properties) Creates an instance of aCheckableConfig
record class.CheckableConfig
(String checkableComponentName, Map<String, ?> properties) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecheckableComponentName
record component.boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.invert()
Creates a newValidatorConfig.CheckableConfig
with the currentinvertResult
inverted.boolean
Returns the value of theinvertResult
record component.Returns the value of theproperties
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CheckableConfig
-
CheckableConfig
public CheckableConfig(String checkableComponentName, boolean invertResult, Map<String, ?> properties) Creates an instance of aCheckableConfig
record class.- Parameters:
checkableComponentName
- the value for thecheckableComponentName
record componentinvertResult
- the value for theinvertResult
record componentproperties
- the value for theproperties
record component
-
-
Method Details
-
invert
Creates a newValidatorConfig.CheckableConfig
with the currentinvertResult
inverted.- Returns:
- the new
ValidatorConfig.CheckableConfig
-
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 '=='. -
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. -
checkableComponentName
Returns the value of thecheckableComponentName
record component.- Returns:
- the value of the
checkableComponentName
record component
-
invertResult
public boolean invertResult()Returns the value of theinvertResult
record component.- Returns:
- the value of the
invertResult
record component
-
properties
Returns the value of theproperties
record component.- Returns:
- the value of the
properties
record component
-