Record Class ValidatorConfig.CheckableConfig

java.lang.Object
java.lang.Record
io.openems.edge.core.appmanager.validator.ValidatorConfig.CheckableConfig
Enclosing class:
ValidatorConfig

public static record ValidatorConfig.CheckableConfig(String checkableComponentName, boolean invertResult, Map<String,?> properties) extends Record
  • Constructor Details

    • CheckableConfig

      public CheckableConfig(String checkableComponentName, Map<String,?> properties)
    • CheckableConfig

      public CheckableConfig(String checkableComponentName, boolean invertResult, Map<String,?> properties)
      Creates an instance of a CheckableConfig record class.
      Parameters:
      checkableComponentName - the value for the checkableComponentName record component
      invertResult - the value for the invertResult record component
      properties - the value for the properties record component
  • Method Details

    • invert

      Creates a new ValidatorConfig.CheckableConfig with the current invertResult inverted.
      Returns:
      the new ValidatorConfig.CheckableConfig
    • equals

      public boolean equals(Object obj)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      obj - the object with which to compare
      Returns:
      true if this object is the same as the obj argument; false otherwise.
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • checkableComponentName

      public String checkableComponentName()
      Returns the value of the checkableComponentName record component.
      Returns:
      the value of the checkableComponentName record component
    • invertResult

      public boolean invertResult()
      Returns the value of the invertResult record component.
      Returns:
      the value of the invertResult record component
    • properties

      public Map<String,?> properties()
      Returns the value of the properties record component.
      Returns:
      the value of the properties record component