class RouteB[A] extends RouteCommon[RouteB, A]
A fragment of a route. Can be composed with other fragments.
- Alphabetic
- By Inheritance
- RouteB
- RouteCommon
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new RouteB(regex: String, matchGroups: Int, parse: ((Int) => String) => Option[A], build: (A) => String)
- matchGroups
The number of matches that
regexwill capture.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def /[B](next: RouteB[B])(implicit c: Composition[A, B]): RouteB[C]
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val build: (A) => String
- macro def caseClass[B]: RouteB[B]
Maps the captures values of the route to a case class.
- macro def caseClassDebug[B]: RouteB[B]
Same as caseClass except the code generated by the macro is printed to stdout.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def const[B](b: B)(implicit ev: =:=[A, Unit], ev2: =:=[Unit, A]): RouteB[B]
- Definition Classes
- RouteCommon
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def filter(f: (A) => Boolean): RouteB[A]
- Definition Classes
- RouteCommon
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def mapInput[B >: A](f: (B) => A): RouteB[B]
- Definition Classes
- RouteCommon
- final def mapParsed[B <: A](f: (A) => B): RouteB[B]
- Definition Classes
- RouteCommon
- val matchGroups: Int
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def option: RouteB[Option[A]]
- val parse: ((Int) => String) => Option[A]
- def parseThen(f: (Option[A]) => Option[A]): RouteB[A]
- Definition Classes
- RouteB → RouteCommon
- def pmap[B](b: (A) => Option[B])(a: (B) => A): RouteB[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
- RouteB → RouteCommon
- val regex: String
- final def route: Route[A]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- RouteB → AnyRef → Any
- 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): RouteB[B]
Exponential map.
Exponential map.
Any
Acan be turned into aBand vice versa.- Definition Classes
- RouteCommon
- def ~[B](next: RouteB[B])(implicit c: Composition[A, B]): RouteB[C]
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.