
urldsl.vocabulary.PathMatchOutput.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of url-dsl_2.12 Show documentation
Show all versions of url-dsl_2.12 Show documentation
A tiny library for parsing and creating urls in a type-safe way
The newest version!
package urldsl.vocabulary
/** Returned type of matching segments against a [[urldsl.language.PathSegment]].
*
* This is used to avoid returning an ugly tuple.
*
* @param output
* the de-serialized element from the matching
* @param unusedSegments
* the segments that were not used to generate the output
*/
final case class PathMatchOutput[T](output: T, unusedSegments: List[Segment]) {
def map[U](f: T => U): PathMatchOutput[U] = PathMatchOutput(f(output), unusedSegments)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy