Package com.onec.ui
Record Class UiLayout.ResolvedItem
java.lang.Object
java.lang.Record
com.onec.ui.UiLayout.ResolvedItem
- Enclosing class:
UiLayout
-
Constructor Summary
ConstructorsConstructorDescriptionResolvedItem(String name, String type, String href, Class<?> javaClass) Back-compat constructor for items with no explicit title/icon (both resolved heuristically).Creates an instance of aResolvedItemrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.href()Returns the value of thehrefrecord component.icon()Returns the value of theiconrecord component.Class<?> Returns the value of thejavaClassrecord component.name()Returns the value of thenamerecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
ResolvedItem
public ResolvedItem(String name, String title, String type, String href, Class<?> javaClass, String icon) Creates an instance of aResolvedItemrecord class.- Parameters:
name- the value for thenamerecord componenttitle- the value for thetitlerecord componenttype- the value for thetyperecord componenthref- the value for thehrefrecord componentjavaClass- the value for thejavaClassrecord componenticon- the value for theiconrecord component
-
ResolvedItem
Back-compat constructor for items with no explicit title/icon (both resolved heuristically).
-
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
href
Returns the value of thehrefrecord component.- Returns:
- the value of the
hrefrecord component
-
javaClass
Returns the value of thejavaClassrecord component.- Returns:
- the value of the
javaClassrecord component
-
icon
Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-