implicit final class PureMatcherOps[F[_], A] extends AnyVal
- Source
- Matcher.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- PureMatcherOps
- AnyVal
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from PureMatcherOps[F, A] to any2stringadd[PureMatcherOps[F, A]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (PureMatcherOps[F, A], B)
- Implicit
- This member is added by an implicit conversion from PureMatcherOps[F, A] to ArrowAssoc[PureMatcherOps[F, A]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
def
/[B](other: Matcher[F, B]): Matcher[F, B]
matches and consumes current path segment throwing away
A
* -
def
/>>=[B](f: (A) ⇒ Matcher[F, B]): Matcher[F, B]
defined as advance.flatMap(f) *
-
def
</[B](other: Matcher[F, B]): Matcher[F, A]
matches and consumes current path segment throwing away
B
* -
def
<<[B](fb: Matcher[F, B]): Matcher[F, A]
defined as flatMap { a => fb map { _ => a} } *
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
def
>>[B](fb: Matcher[F, B]): Matcher[F, B]
defined as flatMap { _ => fb } *
-
def
>>=[B](f: (A) ⇒ Matcher[F, B]): Matcher[F, B]
allias for flatMap *
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def covary[F0[_] >: F[_]]: Matcher[F0, A]
-
def
ensuring(cond: (PureMatcherOps[F, A]) ⇒ Boolean, msg: ⇒ Any): PureMatcherOps[F, A]
- Implicit
- This member is added by an implicit conversion from PureMatcherOps[F, A] to Ensuring[PureMatcherOps[F, A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (PureMatcherOps[F, A]) ⇒ Boolean): PureMatcherOps[F, A]
- Implicit
- This member is added by an implicit conversion from PureMatcherOps[F, A] to Ensuring[PureMatcherOps[F, A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): PureMatcherOps[F, A]
- Implicit
- This member is added by an implicit conversion from PureMatcherOps[F, A] to Ensuring[PureMatcherOps[F, A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): PureMatcherOps[F, A]
- Implicit
- This member is added by an implicit conversion from PureMatcherOps[F, A] to Ensuring[PureMatcherOps[F, A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
evalMap[B](f: (A) ⇒ F[B]): Matcher[F, B]
like
map
but allows to evaluateF
* -
def
flatMap[B](f: (A) ⇒ Matcher[F, B]): Matcher[F, B]
transforms this matcher to another matcher with supplied
f
* -
def
flatMapR[B](f: (MatchResult[F, A]) ⇒ Matcher[F, B]): Matcher[F, B]
like flatMap, but allows to apply
f
when match failed * -
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
or[A0 >: A](alt: ⇒ Matcher[F, A0]): Matcher[F, A0]
matches this or alternative *
-
def
recover(f: (HttpResponse[F]) ⇒ Matcher[F, A]): Matcher[F, A]
applies
f
only when matcher fails to match * - val self: Matcher[F, A]
-
def
toString(): String
- Definition Classes
- Any
-
def
→[B](y: B): (PureMatcherOps[F, A], B)
- Implicit
- This member is added by an implicit conversion from PureMatcherOps[F, A] to ArrowAssoc[PureMatcherOps[F, A]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
Deprecated Value Members
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from PureMatcherOps[F, A] to StringFormat[PureMatcherOps[F, A]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.