PathSegmentTailcardRouteSelector

data class PathSegmentTailcardRouteSelector : RouteSelector

Evaluates a route against any number of trailing path segments, and captures their values

Parameters

name - is the name of the parameter to capture values to

Constructors

<init>

PathSegmentTailcardRouteSelector(
    name: String = "",
    prefix: String = "",
    hasTrailingSlash: Boolean)
PathSegmentTailcardRouteSelector(
    name: String = "",
    prefix: String = "")

Evaluates a route against any number of trailing path segments, and captures their values

Properties

name

val name: String

is the name of the parameter to capture values to

prefix

val prefix: String

before the tailcard (static text)

Inherited Properties

quality

val quality: Double

indicates how good this selector is compared to siblings

Functions

equals

fun equals(other: Any?): Boolean

evaluate

fun evaluate(
    context: RoutingResolveContext,
    segmentIndex: Int
): RouteSelectorEvaluation

Evaluates this selector against context and a path segment at segmentIndex

hashCode

fun hashCode(): Int

toString

fun toString(): String