Package io.micronaut.http.uri
Class UriMatchVariable
- java.lang.Object
-
- io.micronaut.http.uri.UriMatchVariable
-
public class UriMatchVariable extends java.lang.Object
Represents a variable in a URI template.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getName()
int
hashCode()
boolean
isExploded()
boolean
isOptional()
An optional variable is one that will allow the route to match if it is not present.boolean
isQuery()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Returns:
- The variable name
-
isExploded
public boolean isExploded()
- Returns:
- True if the variable is exploded
-
isQuery
public boolean isQuery()
- Returns:
- true if the variable part of a query.
-
isOptional
public boolean isOptional()
An optional variable is one that will allow the route to match if it is not present.- Returns:
- True if the variable is optional
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-