sealed trait Extractor[-A, +B] extends (A) ⇒ Option[B]
A pattern that can be used in match
/ case
expressions.
- Source
- Extractor.scala
Linear Supertypes
Type Hierarchy
Ordering
- Alphabetic
- By Inheritance
Inherited
- Extractor
- Function1
- AnyRef
- Any
Implicitly
- by OptionFunctionToExtractor
- by OptionFunctionToSeqExtractor
- by FunctionToExtractor
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Concrete 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): (Extractor[A, B], B)
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
andThen[A](g: (Option[B]) ⇒ A): (A) ⇒ A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
final
def
apply(a: A): Option[B]
- Definition Classes
- Extractor → Function1
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
compose[A](g: (A) ⇒ A): (A) ⇒ Option[B]
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- def ensuring(cond: (Extractor[A, B]) ⇒ Boolean, msg: ⇒ Any): Extractor[A, B]
- def ensuring(cond: (Extractor[A, B]) ⇒ Boolean): Extractor[A, B]
- def ensuring(cond: Boolean, msg: ⇒ Any): Extractor[A, B]
- def ensuring(cond: Boolean): Extractor[A, B]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
forall: Extractor[Seq[A], Seq[B]]
- Implicit
- This member is added by an implicit conversion from Extractor[A, B] to Extractor.OptionFunctionToExtractor[A, B] performed by method OptionFunctionToExtractor in com.thoughtworks.LowPriorityExtractor.
- Definition Classes
- OptionFunctionToExtractor
- def formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
- 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()
-
def
seq: Extractor.SeqExtractor[A, Nothing]
- Implicit
- This member is added by an implicit conversion from Extractor[A, B] to Extractor.OptionFunctionToSeqExtractor[A, Nothing] performed by method OptionFunctionToSeqExtractor in com.thoughtworks.LowPriorityExtractor. This conversion will take place only if B is a subclass of Seq[Nothing] (B <: Seq[Nothing]).
- Definition Classes
- OptionFunctionToSeqExtractor
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Function1 → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def →[B](y: B): (Extractor[A, B], B)
Shadowed Implicit Value Members
-
def
extract: Extractor[A, B]
- Implicit
- This member is added by an implicit conversion from Extractor[A, B] to Extractor.OptionFunctionToExtractor[A, B] performed by method OptionFunctionToExtractor in com.thoughtworks.LowPriorityExtractor.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(extractor: Extractor.OptionFunctionToExtractor[A, B]).extract
- Definition Classes
- OptionFunctionToExtractor
-
def
extract: Extractor[A, Option[B]] { def unapply(a: A): Some[Option[B]] }
- Implicit
- This member is added by an implicit conversion from Extractor[A, B] to Extractor.FunctionToExtractor[A, Option[B]] performed by method FunctionToExtractor in com.thoughtworks.LowLowPriorityExtractor.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(extractor: Extractor.FunctionToExtractor[A, Option[B]]).extract
- Definition Classes
- FunctionToExtractor