private static class DefaultPathContainer.DefaultPathSegment extends java.lang.Object implements PathContainer.PathSegment
Modifier and Type | Field and Description |
---|---|
private MultiValueMap<java.lang.String,java.lang.String> |
parameters |
private java.lang.String |
value |
private java.lang.String |
valueToMatch |
private char[] |
valueToMatchAsChars |
Constructor and Description |
---|
DefaultPathSegment(java.lang.String value,
java.lang.String valueToMatch,
MultiValueMap<java.lang.String,java.lang.String> params) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
MultiValueMap<java.lang.String,java.lang.String> |
parameters()
Path parameters parsed from the path segment.
|
java.lang.String |
toString() |
java.lang.String |
value()
Return the original (raw, encoded) value of this path element.
|
java.lang.String |
valueToMatch()
Return the path segment value to use for pattern matching purposes.
|
char[] |
valueToMatchAsChars()
The same as
PathContainer.PathSegment.valueToMatch() but as a char[] . |
private final java.lang.String value
private final java.lang.String valueToMatch
private final char[] valueToMatchAsChars
private final MultiValueMap<java.lang.String,java.lang.String> parameters
public DefaultPathSegment(java.lang.String value, java.lang.String valueToMatch, MultiValueMap<java.lang.String,java.lang.String> params)
public java.lang.String value()
PathContainer.Element
value
in interface PathContainer.Element
public java.lang.String valueToMatch()
PathContainer.PathSegment
PathContainer.Element.value()
but may also differ
in sub-interfaces (e.g. decoded, sanitized, etc.).valueToMatch
in interface PathContainer.PathSegment
public char[] valueToMatchAsChars()
PathContainer.PathSegment
PathContainer.PathSegment.valueToMatch()
but as a char[]
.valueToMatchAsChars
in interface PathContainer.PathSegment
public MultiValueMap<java.lang.String,java.lang.String> parameters()
PathContainer.PathSegment
parameters
in interface PathContainer.PathSegment
public boolean equals(@Nullable java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object