Class RouteParam

java.lang.Object
com.vaadin.flow.internal.Pair<String,String>
com.vaadin.flow.router.RouteParam
All Implemented Interfaces:
Serializable

public class RouteParam extends Pair<String,String>
Route parameter containing the name and the value used mainly when constructing a RouteParameters instance.
See Also:
  • Constructor Details

    • RouteParam

      public RouteParam(String name, String value)
      Creates a new route parameter.
      Parameters:
      name - the name of the parameter.
      value - the value of the parameter.
    • RouteParam

      public RouteParam(String name, int value)
      Creates a new route parameter.
      Parameters:
      name - the name of the parameter.
      value - the value of the parameter.
    • RouteParam

      public RouteParam(String name, long value)
      Creates a new route parameter.
      Parameters:
      name - the name of the parameter.
      value - the value of the parameter.
  • Method Details

    • getName

      public String getName()
      Gets the name of the parameter.
      Returns:
      the name of the parameter.
    • getValue

      public String getValue()
      Gets the value of the parameter.
      Returns:
      the value of the parameter.