Package io.micronaut.controlpanel.ui
Record Class Model
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.ui.Model
- Record Components:
categories
- The available categories.applicationName
- The application name.activeEnvironments
- The active environments.contentView
- The content view.canRefresh
- Whether the host application can be refreshed.canStop
- Whether the host application can be stopped.ext
- Any additional data to be passed to the view.
public record Model(List<ControlPanel.Category> categories, String applicationName, Set<String> activeEnvironments, io.micronaut.controlpanel.ui.Model.ContentView contentView, boolean canRefresh, boolean canStop, Map<String,Object> ext)
extends Record
Model to be passed to the view for rendering.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactiveEnvironments
record component.Returns the value of theapplicationName
record component.boolean
Returns the value of thecanRefresh
record component.boolean
canStop()
Returns the value of thecanStop
record component.Returns the value of thecategories
record component.io.micronaut.controlpanel.ui.Model.ContentView
Returns the value of thecontentView
record component.final boolean
Indicates whether some other object is "equal to" this one.ext()
Returns the value of theext
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Model
public Model(List<ControlPanel.Category> categories, String applicationName, Set<String> activeEnvironments, io.micronaut.controlpanel.ui.Model.ContentView contentView, boolean canRefresh, boolean canStop, Map<String, Object> ext) Creates an instance of aModel
record class.- Parameters:
categories
- the value for thecategories
record componentapplicationName
- the value for theapplicationName
record componentactiveEnvironments
- the value for theactiveEnvironments
record componentcontentView
- the value for thecontentView
record componentcanRefresh
- the value for thecanRefresh
record componentcanStop
- the value for thecanStop
record componentext
- the value for theext
record component
-
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
categories
Returns the value of thecategories
record component.- Returns:
- the value of the
categories
record component
-
applicationName
Returns the value of theapplicationName
record component.- Returns:
- the value of the
applicationName
record component
-
activeEnvironments
Returns the value of theactiveEnvironments
record component.- Returns:
- the value of the
activeEnvironments
record component
-
contentView
public io.micronaut.controlpanel.ui.Model.ContentView contentView()Returns the value of thecontentView
record component.- Returns:
- the value of the
contentView
record component
-
canRefresh
public boolean canRefresh()Returns the value of thecanRefresh
record component.- Returns:
- the value of the
canRefresh
record component
-
canStop
public boolean canStop()Returns the value of thecanStop
record component.- Returns:
- the value of the
canStop
record component
-
ext
Returns the value of theext
record component.- Returns:
- the value of the
ext
record component
-