Package io.openems.common.oem
Record Class OpenemsEdgeOem.SystemUpdateParams
java.lang.Object
java.lang.Record
io.openems.common.oem.OpenemsEdgeOem.SystemUpdateParams
- Enclosing interface:
OpenemsEdgeOem
-
Constructor Summary
ConstructorDescriptionSystemUpdateParams
(String packageName, String latestVersionUrl, String updateScriptUrl, String updateScriptParams) Creates an instance of aSystemUpdateParams
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thelatestVersionUrl
record component.Returns the value of thepackageName
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theupdateScriptParams
record component.Returns the value of theupdateScriptUrl
record component.
-
Constructor Details
-
SystemUpdateParams
public SystemUpdateParams(String packageName, String latestVersionUrl, String updateScriptUrl, String updateScriptParams) Creates an instance of aSystemUpdateParams
record class.- Parameters:
packageName
- the value for thepackageName
record componentlatestVersionUrl
- the value for thelatestVersionUrl
record componentupdateScriptUrl
- the value for theupdateScriptUrl
record componentupdateScriptParams
- the value for theupdateScriptParams
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)
. -
packageName
Returns the value of thepackageName
record component.- Returns:
- the value of the
packageName
record component
-
latestVersionUrl
Returns the value of thelatestVersionUrl
record component.- Returns:
- the value of the
latestVersionUrl
record component
-
updateScriptUrl
Returns the value of theupdateScriptUrl
record component.- Returns:
- the value of the
updateScriptUrl
record component
-
updateScriptParams
Returns the value of theupdateScriptParams
record component.- Returns:
- the value of the
updateScriptParams
record component
-