Package com.vaadin.hilla.route.records
Record Class AvailableViewInfo
java.lang.Object
java.lang.Record
com.vaadin.hilla.route.records.AvailableViewInfo
- Record Components:
route-title-rolesAllowed-requiresLogin-lazy-register--routeParameters-
public record AvailableViewInfo(String title, String[] rolesAllowed, Boolean requiresLogin, String route, Boolean lazy, Boolean register, ClientViewMenuConfig menu, Map<String,RouteParamType> routeParameters)
extends Record
Represents a server side view configuration for the client side.
-
Constructor Summary
ConstructorsConstructorDescriptionAvailableViewInfo(String title, String[] rolesAllowed, Boolean requiresLogin, String route, Boolean lazy, Boolean register, ClientViewMenuConfig menu, Map<String, RouteParamType> routeParameters) Creates an instance of aAvailableViewInforecord class.AvailableViewInfo(String title, String[] rolesAllowed, Boolean requiresLogin, String route, Boolean lazy, Boolean register, ClientViewMenuConfig menu, Stream<com.vaadin.flow.router.RouteParameterData> routeParameters) -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.lazy()Returns the value of thelazyrecord component.menu()Returns the value of themenurecord component.register()Returns the value of theregisterrecord component.Returns the value of therequiresLoginrecord component.String[]Returns the value of therolesAllowedrecord component.route()Returns the value of therouterecord component.Returns the value of therouteParametersrecord component.title()Returns the value of thetitlerecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
AvailableViewInfo
-
AvailableViewInfo
public AvailableViewInfo(String title, String[] rolesAllowed, Boolean requiresLogin, String route, Boolean lazy, Boolean register, ClientViewMenuConfig menu, Map<String, RouteParamType> routeParameters) Creates an instance of aAvailableViewInforecord class.- Parameters:
title- the value for thetitlerecord componentrolesAllowed- the value for therolesAllowedrecord componentrequiresLogin- the value for therequiresLoginrecord componentroute- the value for therouterecord componentlazy- the value for thelazyrecord componentregister- the value for theregisterrecord componentmenu- the value for themenurecord componentrouteParameters- the value for therouteParametersrecord component
-
-
Method Details
-
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). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
rolesAllowed
Returns the value of therolesAllowedrecord component.- Returns:
- the value of the
rolesAllowedrecord component
-
requiresLogin
Returns the value of therequiresLoginrecord component.- Returns:
- the value of the
requiresLoginrecord component
-
route
Returns the value of therouterecord component.- Returns:
- the value of the
routerecord component
-
lazy
Returns the value of thelazyrecord component.- Returns:
- the value of the
lazyrecord component
-
register
Returns the value of theregisterrecord component.- Returns:
- the value of the
registerrecord component
-
routeParameters
Returns the value of therouteParametersrecord component.- Returns:
- the value of the
routeParametersrecord component
-