Record Class OptionGroup
java.lang.Object
java.lang.Record
io.openems.edge.core.appmanager.formly.builder.selectgroup.OptionGroup
-
Constructor Summary
ConstructorDescriptionOptionGroup
(String group, String title, List<Option> options) Creates an instance of aOptionGroup
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic OptionGroupBuilder
buildOptionGroup
(String group, String title) Creates aOptionGroupBuilder
.final boolean
Indicates whether some other object is "equal to" this one.group()
Returns the value of thegroup
record component.final int
hashCode()
Returns a hash code value for this object.options()
Returns the value of theoptions
record component.title()
Returns the value of thetitle
record component.com.google.gson.JsonElement
toJson()
Creates aJsonElement
from thisOptionGroup
.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
OptionGroup
Creates an instance of aOptionGroup
record class.- Parameters:
group
- the value for thegroup
record componenttitle
- the value for thetitle
record componentoptions
- the value for theoptions
record component
-
-
Method Details
-
buildOptionGroup
Creates aOptionGroupBuilder
.- Parameters:
value
- the value of the option- Returns:
- the
OptionGroupBuilder
-
toJson
public com.google.gson.JsonElement toJson()Creates aJsonElement
from thisOptionGroup
.- 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)
. -
group
Returns the value of thegroup
record component.- Returns:
- the value of the
group
record component
-
title
Returns the value of thetitle
record component.- Returns:
- the value of the
title
record component
-
options
Returns the value of theoptions
record component.- Returns:
- the value of the
options
record component
-