Record Class GetEdgesRequest.PaginationOptions.SearchParams

java.lang.Object
java.lang.Record
io.openems.common.jsonrpc.request.GetEdgesRequest.PaginationOptions.SearchParams
Enclosing class:
GetEdgesRequest.PaginationOptions

public static record GetEdgesRequest.PaginationOptions.SearchParams(List<String> productTypes, List<Level> sumStates, boolean searchIsOnline, boolean isOnline) extends Record
  • Constructor Details

    • SearchParams

      public SearchParams(List<String> productTypes, List<Level> sumStates, boolean searchIsOnline, boolean isOnline)
      Creates an instance of a SearchParams record class.
      Parameters:
      productTypes - the value for the productTypes record component
      sumStates - the value for the sumStates record component
      searchIsOnline - the value for the searchIsOnline record component
      isOnline - the value for the isOnline record component
  • Method Details

    • from

      public static GetEdgesRequest.PaginationOptions.SearchParams from(com.google.gson.JsonObject obj) throws OpenemsError.OpenemsNamedException
      Parameters:
      obj - the JsonObject
      Returns:
      the GetEdgesRequest.PaginationOptions.SearchParams
      Throws:
      OpenemsError.OpenemsNamedException
    • toJson

      public com.google.gson.JsonElement toJson()
      Creates a JsonElement out of this GetEdgesRequest.PaginationOptions.SearchParams.
      Returns:
      the created JsonElement
    • 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
    • equals

      public final boolean equals(Object o)
      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:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • productTypes

      public List<String> productTypes()
      Returns the value of the productTypes record component.
      Returns:
      the value of the productTypes record component
    • sumStates

      public List<Level> sumStates()
      Returns the value of the sumStates record component.
      Returns:
      the value of the sumStates record component
    • searchIsOnline

      public boolean searchIsOnline()
      Returns the value of the searchIsOnline record component.
      Returns:
      the value of the searchIsOnline record component
    • isOnline

      public boolean isOnline()
      Returns the value of the isOnline record component.
      Returns:
      the value of the isOnline record component