Record Class NativeUi.Element
java.lang.Object
java.lang.Record
megalodonte.application.messaging.NativeUi.Element
- Enclosing class:
NativeUi
public static record NativeUi.Element(String id, NativeUi.Kind kind, String text, List<NativeUi.Element> children)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionElement(String id, NativeUi.Kind kind, String text, List<NativeUi.Element> children) Creates an instance of aElementrecord class. -
Method Summary
Modifier and TypeMethodDescriptionchildren()Returns the value of thechildrenrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.kind()Returns the value of thekindrecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Element
Creates an instance of aElementrecord class.- Parameters:
id- the value for theidrecord componentkind- the value for thekindrecord componenttext- the value for thetextrecord componentchildren- the value for thechildrenrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
children
Returns the value of thechildrenrecord component.- Returns:
- the value of the
childrenrecord component
-