Record Class ReorderArrayBuilder.SelectOption
java.lang.Object
java.lang.Record
io.openems.edge.core.appmanager.formly.builder.ReorderArrayBuilder.SelectOption
- Enclosing class:
ReorderArrayBuilder
public static record ReorderArrayBuilder.SelectOption(String label, String value, ReorderArrayBuilder.SelectOptionExpressions expressions)
extends Record
-
Constructor Summary
ConstructorDescriptionSelectOption
(String label, String value, ReorderArrayBuilder.SelectOptionExpressions expressions) Creates an instance of aSelectOption
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexpressions
record component.final int
hashCode()
Returns a hash code value for this object.label()
Returns the value of thelabel
record component.com.google.gson.JsonElement
toJson()
Creates aJsonElement
from thisReorderArrayBuilder.SelectOption
.final String
toString()
Returns a string representation of this record class.value()
Returns the value of thevalue
record component.
-
Constructor Details
-
SelectOption
public SelectOption(String label, String value, ReorderArrayBuilder.SelectOptionExpressions expressions) Creates an instance of aSelectOption
record class.- Parameters:
label
- the value for thelabel
record componentvalue
- the value for thevalue
record componentexpressions
- the value for theexpressions
record component
-
-
Method Details
-
toJson
public com.google.gson.JsonElement toJson()Creates aJsonElement
from thisReorderArrayBuilder.SelectOption
.- Returns:
- the
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
label
Returns the value of thelabel
record component.- Returns:
- the value of the
label
record component
-
value
Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-
expressions
Returns the value of theexpressions
record component.- Returns:
- the value of the
expressions
record component
-