public class RouteParameterRegex extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
BOOLEAN
Boolean type regex.
|
static String |
INTEGER
Integer type regex.
|
static String |
LONG
Long type regex.
|
Modifier and Type | Method and Description |
---|---|
static String |
getName(String regex)
Gets the name representation of the regex.
|
static String |
getRegex(Class<?> parameterType)
Gets the regex used for the given parameterType.
|
static Class<?> |
getType(String regex)
Gets the type of the parameter for the given regex.
|
public static final String INTEGER
public static final String LONG
public static final String BOOLEAN
public static String getRegex(Class<?> parameterType)
parameterType
- type of the parameter.public static Class<?> getType(String regex)
regex
- the regex.Copyright © 2023. All rights reserved.