Trait/Object

com.thoughtworks

Extractor

Related Docs: object Extractor | package thoughtworks

Permalink

sealed trait Extractor[-A, +B] extends (A) ⇒ Option[B]

A pattern that can be used in match / case expressions.

Source
Extractor.scala
Linear Supertypes
(A) ⇒ Option[B], AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Extractor
  2. Function1
  3. AnyRef
  4. Any
Implicitly
  1. by OptionFunctionToExtractor
  2. by OptionFunctionToSeqExtractor
  3. by FunctionToExtractor
  4. by any2stringadd
  5. by StringFormat
  6. by Ensuring
  7. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def unapply(a: A): Option[B]

    Permalink

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Extractor[A, B] to any2stringadd[Extractor[A, B]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Extractor[A, B], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Extractor[A, B] to ArrowAssoc[Extractor[A, B]] performed by method ArrowAssoc in scala.Predef. This conversion will take place only if B is a subclass of Seq[Nothing] (B <: Seq[Nothing]).
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def andThen[A](g: (Option[B]) ⇒ A): (A) ⇒ A

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  7. final def apply(a: A): Option[B]

    Permalink
    Definition Classes
    Extractor → Function1
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def compose[A](g: (A) ⇒ A): (A) ⇒ Option[B]

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  11. def ensuring(cond: (Extractor[A, B]) ⇒ Boolean, msg: ⇒ Any): Extractor[A, B]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Extractor[A, B] to Ensuring[Extractor[A, B]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: (Extractor[A, B]) ⇒ Boolean): Extractor[A, B]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Extractor[A, B] to Ensuring[Extractor[A, B]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean, msg: ⇒ Any): Extractor[A, B]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Extractor[A, B] to Ensuring[Extractor[A, B]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean): Extractor[A, B]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Extractor[A, B] to Ensuring[Extractor[A, B]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def forall: Extractor[Seq[A], Seq[B]]

    Permalink
    Implicit information
    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
  19. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Extractor[A, B] to StringFormat[Extractor[A, B]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  20. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  21. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. def seq: Extractor.SeqExtractor[A, Nothing]

    Permalink
    Implicit information
    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
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def toString(): String

    Permalink
    Definition Classes
    Function1 → AnyRef → Any
  29. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. def [B](y: B): (Extractor[A, B], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Extractor[A, B] to ArrowAssoc[Extractor[A, B]] performed by method ArrowAssoc in scala.Predef. This conversion will take place only if B is a subclass of Seq[Nothing] (B <: Seq[Nothing]).
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. def extract: Extractor[A, B]

    Permalink
    Implicit information
    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
  2. def extract: Extractor[A, Option[B]] { def unapply(a: A): Some[Option[B]] }

    Permalink
    Implicit information
    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

Inherited from (A) ⇒ Option[B]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion OptionFunctionToExtractor from Extractor[A, B] to Extractor.OptionFunctionToExtractor[A, B]

Inherited by implicit conversion OptionFunctionToSeqExtractor from Extractor[A, B] to Extractor.OptionFunctionToSeqExtractor[A, Nothing]

Inherited by implicit conversion FunctionToExtractor from Extractor[A, B] to Extractor.FunctionToExtractor[A, Option[B]]

Inherited by implicit conversion any2stringadd from Extractor[A, B] to any2stringadd[Extractor[A, B]]

Inherited by implicit conversion StringFormat from Extractor[A, B] to StringFormat[Extractor[A, B]]

Inherited by implicit conversion Ensuring from Extractor[A, B] to Ensuring[Extractor[A, B]]

Inherited by implicit conversion ArrowAssoc from Extractor[A, B] to ArrowAssoc[Extractor[A, B]]

Ungrouped