case class OrElse[I, O](first: Translator[I, O], second: Translator[I, O]) extends Translator[I, O] with Product with Serializable
Tries the first translator at top level, then the second. Is recursive.
- Alphabetic
- By Inheritance
- OrElse
- Serializable
- Product
- Equals
- Translator
- Function1
- AnyRef
- Any
- by UnliftOps
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new OrElse(first: Translator[I, O], second: Translator[I, O])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (OrElse[I, O], B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def andThen[A](g: (Option[O]) => A): (I) => A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- def apply(inp: I): Option[O]
- Definition Classes
- Translator → Function1
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def compose[A](g: (A) => I): (A) => Option[O]
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- def elseOr(that: Translator[I, O]): OrElse[I, O]
OrElse combinator, tries other translator first, then this one.
OrElse combinator, tries other translator first, then this one. Other translator must be preprended
- Definition Classes
- Translator
- def ensuring(cond: (OrElse[I, O]) => Boolean, msg: => Any): OrElse[I, O]
- def ensuring(cond: (OrElse[I, O]) => Boolean): OrElse[I, O]
- def ensuring(cond: Boolean, msg: => Any): OrElse[I, O]
- def ensuring(cond: Boolean): OrElse[I, O]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val first: Translator[I, O]
- def formatted(fmtstr: String): String
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def map[X](fn: (O) => X, ufn: (X) => O): Mapped[I, O, X]
- Definition Classes
- Translator
- 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 orElse(that: Translator[I, O]): OrElse[I, O]
OrElse combinator, tries other translator if the first fails.
OrElse combinator, tries other translator if the first fails.
- Definition Classes
- Translator
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def recTranslate(leafMap: => (I) => Option[O]): (I) => Option[O]
- Definition Classes
- OrElse → Translator
- val second: Translator[I, O]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Function1 → AnyRef → Any
- def unlift: PartialFunction[I, O]
- Implicit
- This member is added by an implicit conversion from OrElse[I, O] toUnliftOps[I, O] performed by method UnliftOps in scala.Function1.
- Definition Classes
- UnliftOps
- 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])
- def ||(that: Translator[I, O]): OrElse[I, O]
OrElse combinator, tries other translator if the first fails.
OrElse combinator, tries other translator if the first fails.
- Definition Classes
- Translator
- def ||:(that: Translator[I, O]): OrElse[I, O]
OrElse combinator, tries other translator first, then this one.
OrElse combinator, tries other translator first, then this one. Other translator must be preprended
- Definition Classes
- Translator
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
- def →[B](y: B): (OrElse[I, O], B)
- Implicit
- This member is added by an implicit conversion from OrElse[I, O] toArrowAssoc[OrElse[I, O]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.