final class PathSegmentImpl[A] extends AnyRef
Using the pre-defined path segments in PathSegment can be cumbersome if you have to constantly specify the error
type A, for example in the PathSegment.segment or PathSegment.root methods. Therefore, you can invoke an
implementation of this class and import its members instead.
We don't redefine PathSegment.intSegment and PathSegment.stringSegment since they can be easily and
conveniently invoked using the segment
method below.
- A
type of error.
val pathSegmentImpl = PathSegmentImpl[DummyError] import pathSegmentImpl._ root / "hello" // this is of type PathSegment[Unit, DummyError] thanks to the import above. (note that in this case there is already a PathSegmentImpl for urldsl.errors.DummyError in the PathSegment companion object)
- Alphabetic
- By Inheritance
- PathSegmentImpl
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new PathSegmentImpl()(implicit error: PathMatchingError[A])
- error
implementation of urldsl.errors.PathMatchingError for type A.
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]) @native()
- val endOfSegments: PathSegment[Unit, A]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val remainingSegments: PathSegment[List[String], A]
- val root: PathSegment[Unit, A]
- def segment[T](implicit fromString: FromString[T, A], printer: Printer[T]): PathSegment[T, A]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()