case class Simple[I, O](translate: (I) => Option[O]) extends Translator[I, O] with Product with Serializable
non-recursive translation determined by a given optional function
- Alphabetic
- By Inheritance
- Simple
- 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 Simple(translate: (I) => Option[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): (Simple[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: (Simple[I, O]) => Boolean, msg: => Any): Simple[I, O]
- def ensuring(cond: (Simple[I, O]) => Boolean): Simple[I, O]
- def ensuring(cond: Boolean, msg: => Any): Simple[I, O]
- def ensuring(cond: Boolean): Simple[I, O]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- 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
- Simple → Translator
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Function1 → AnyRef → Any
- val translate: (I) => Option[O]
- def unlift: PartialFunction[I, O]
- Implicit
- This member is added by an implicit conversion from Simple[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): (Simple[I, O], B)
- Implicit
- This member is added by an implicit conversion from Simple[I, O] toArrowAssoc[Simple[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.