Record Class WidgetShowcaseResource.WidgetsBean
java.lang.Object
java.lang.Record
ch.tocco.nice2.widget.impl.rest.WidgetShowcaseResource.WidgetsBean
- Enclosing class:
WidgetShowcaseResource
public static record WidgetShowcaseResource.WidgetsBean(List<WidgetShowcaseResource.Widget> widgets)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionWidgetsBean(List<WidgetShowcaseResource.Widget> widgets) Creates an instance of aWidgetsBeanrecord 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.final StringtoString()Returns a string representation of this record class.widgets()Returns the value of thewidgetsrecord component.
-
Constructor Details
-
WidgetsBean
Creates an instance of aWidgetsBeanrecord class.- Parameters:
widgets- the value for thewidgetsrecord 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). -
widgets
Returns the value of thewidgetsrecord component.- Returns:
- the value of the
widgetsrecord component
-