Record Class OptionExpressions
java.lang.Object
java.lang.Record
io.openems.edge.core.appmanager.formly.builder.selectgroup.OptionExpressions
public record OptionExpressions(BooleanExpression hide, BooleanExpression disabled, StringExpression title)
extends Record
-
Constructor Summary
ConstructorDescriptionOptionExpressions
(BooleanExpression hide, BooleanExpression disabled, StringExpression title) Creates an instance of aOptionExpressions
record class. -
Method Summary
Modifier and TypeMethodDescriptiondisabled()
Returns the value of thedisabled
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.hide()
Returns the value of thehide
record component.title()
Returns the value of thetitle
record component.com.google.gson.JsonElement
toJson()
Creates aJsonElement
from thisOptionExpressions
.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
OptionExpressions
public OptionExpressions(BooleanExpression hide, BooleanExpression disabled, StringExpression title) Creates an instance of aOptionExpressions
record class.- Parameters:
hide
- the value for thehide
record componentdisabled
- the value for thedisabled
record componenttitle
- the value for thetitle
record component
-
-
Method Details
-
toJson
public com.google.gson.JsonElement toJson()Creates aJsonElement
from thisOptionExpressions
.- 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)
. -
hide
Returns the value of thehide
record component.- Returns:
- the value of the
hide
record component
-
disabled
Returns the value of thedisabled
record component.- Returns:
- the value of the
disabled
record component
-
title
Returns the value of thetitle
record component.- Returns:
- the value of the
title
record component
-