Packages

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
Serializable, Product, Equals, RouteCommon[Route, A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Route
  2. Serializable
  3. Product
  4. Equals
  5. RouteCommon
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Route(parse: (Path) => Option[A], pathFor: (A) => Path)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  6. final def const[B](b: B)(implicit ev: ValueOf[A]): Route[B]
    Definition Classes
    RouteCommon
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. final def filter(f: (A) => Boolean): Route[A]
    Definition Classes
    RouteCommon
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def mapInput[B >: A](f: (B) => A): Route[B]
    Definition Classes
    RouteCommon
  12. final def mapParsed[B <: A](f: (A) => B): Route[B]
    Definition Classes
    RouteCommon
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  16. val parse: (Path) => Option[A]
  17. def parseThen(f: (Option[A]) => Option[A]): Route[A]
    Definition Classes
    RouteRouteCommon
  18. val pathFor: (A) => Path
  19. def pmap[B](b: (A) => Option[B])(a: (B) => A): Route[B]

    Prism map.

    Prism map.

    Some values of A can be turned into a Bs, some fail (in which case the route is considered non-matching).

    All Bs can be turned back into As.

    Definition Classes
    RouteRouteCommon
  20. def productElementNames: Iterator[String]
    Definition Classes
    Product
  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def xmap[B](b: (A) => B)(a: (B) => A): Route[B]

    Exponential map.

    Exponential map.

    Any A can be turned into a B and vice versa.

    Definition Classes
    RouteCommon

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from RouteCommon[Route, A]

Inherited from AnyRef

Inherited from Any

Ungrouped