case class Route[A](parse: (Path) => Option[A], pathFor: (A) => Path) extends RouteCommon[Route, A] with Product with Serializable
A Route translates a Path into an instance of model A and vice versa.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Route
- Serializable
- Product
- Equals
- RouteCommon
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- final def const[B](b: B)(implicit ev: ValueOf[A]): Route[B]
- Definition Classes
- RouteCommon
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def filter(f: (A) => Boolean): Route[A]
- Definition Classes
- RouteCommon
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def mapInput[B >: A](f: (B) => A): Route[B]
- Definition Classes
- RouteCommon
- final def mapParsed[B <: A](f: (A) => B): Route[B]
- Definition Classes
- RouteCommon
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- val parse: (Path) => Option[A]
- def parseThen(f: (Option[A]) => Option[A]): Route[A]
- Definition Classes
- Route → RouteCommon
- val pathFor: (A) => Path
- def pmap[B](b: (A) => Option[B])(a: (B) => A): Route[B]
Prism map.
Prism map.
Some values of
Acan be turned into aBs, some fail (in which case the route is considered non-matching).All
Bs can be turned back intoAs.- Definition Classes
- Route → RouteCommon
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def xmap[B](b: (A) => B)(a: (B) => A): Route[B]
Exponential map.
Exponential map.
Any
Acan be turned into aBand vice versa.- Definition Classes
- RouteCommon
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)