Record Class GetEdgesRequest.PaginationOptions.SearchParams
java.lang.Object
java.lang.Record
io.openems.common.jsonrpc.request.GetEdgesRequest.PaginationOptions.SearchParams
- Enclosing class:
GetEdgesRequest.PaginationOptions
-
Constructor Summary
ConstructorDescriptionSearchParams
(List<String> productTypes, List<Level> sumStates, boolean searchIsOnline, boolean isOnline) Creates an instance of aSearchParams
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.from
(com.google.gson.JsonObject obj) Creates aGetEdgesRequest.PaginationOptions.SearchParams
from aJsonObject
.final int
hashCode()
Returns a hash code value for this object.boolean
isOnline()
Returns the value of theisOnline
record component.Returns the value of theproductTypes
record component.boolean
Returns the value of thesearchIsOnline
record component.Returns the value of thesumStates
record component.com.google.gson.JsonElement
toJson()
Creates aJsonElement
out of thisGetEdgesRequest.PaginationOptions.SearchParams
.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SearchParams
public SearchParams(List<String> productTypes, List<Level> sumStates, boolean searchIsOnline, boolean isOnline) Creates an instance of aSearchParams
record class.- Parameters:
productTypes
- the value for theproductTypes
record componentsumStates
- the value for thesumStates
record componentsearchIsOnline
- the value for thesearchIsOnline
record componentisOnline
- the value for theisOnline
record component
-
-
Method Details
-
from
public static GetEdgesRequest.PaginationOptions.SearchParams from(com.google.gson.JsonObject obj) throws OpenemsError.OpenemsNamedException Creates aGetEdgesRequest.PaginationOptions.SearchParams
from aJsonObject
.- Parameters:
obj
- theJsonObject
- Returns:
- the
GetEdgesRequest.PaginationOptions.SearchParams
- Throws:
OpenemsError.OpenemsNamedException
-
toJson
public com.google.gson.JsonElement toJson()Creates aJsonElement
out of thisGetEdgesRequest.PaginationOptions.SearchParams
.- Returns:
- the created
JsonElement
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
productTypes
Returns the value of theproductTypes
record component.- Returns:
- the value of the
productTypes
record component
-
sumStates
Returns the value of thesumStates
record component.- Returns:
- the value of the
sumStates
record component
-
searchIsOnline
public boolean searchIsOnline()Returns the value of thesearchIsOnline
record component.- Returns:
- the value of the
searchIsOnline
record component
-
isOnline
public boolean isOnline()Returns the value of theisOnline
record component.- Returns:
- the value of the
isOnline
record component
-