Record Class PathMatcher.MatchResult
java.lang.Object
java.lang.Record
cool.scx.http.routing.PathMatcher.MatchResult
- Enclosing interface:
PathMatcher
public static record PathMatcher.MatchResult(boolean accepted, Parameters<String,String> pathParams)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMatchResult(boolean accepted, Parameters<String, String> pathParams) Creates an instance of aMatchResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepted()Returns the value of theacceptedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepathParamsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MatchResult
Creates an instance of aMatchResultrecord class.- Parameters:
accepted- the value for theacceptedrecord componentpathParams- the value for thepathParamsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
accepted
public boolean accepted()Returns the value of theacceptedrecord component.- Returns:
- the value of the
acceptedrecord component
-
pathParams
Returns the value of thepathParamsrecord component.- Returns:
- the value of the
pathParamsrecord component
-