Packages

abstract class FromString[+T] extends PartialFunction[String, T]

A general mechanism for defining how a command line argument (always a String) is transformed into an arbitrary type. A few example instances are in the companion object, but in general either IntFromString will suffice or you'll want custom transformers.

Source
FromString.scala
Linear Supertypes
PartialFunction[String, T], (String) ⇒ T, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FromString
  2. PartialFunction
  3. Function1
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FromString()(implicit m: OptManifest[T])

Abstract Value Members

  1. abstract def apply(s: String): T
    Definition Classes
    FromString → Function1

Concrete Value Members

  1. def andThen[C](k: (T) ⇒ C): PartialFunction[String, C]
    Definition Classes
    PartialFunction → Function1
  2. def applyOrElse[A1 <: String, B1 >: T](x: A1, default: (A1) ⇒ B1): B1
    Definition Classes
    PartialFunction
  3. def compose[A](g: (A) ⇒ String): (A) ⇒ T
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  4. def isDefinedAt(s: String): Boolean
    Definition Classes
    FromString → PartialFunction
  5. def lift: (String) ⇒ Option[T]
    Definition Classes
    PartialFunction
  6. def orElse[A1 <: String, B1 >: T](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]
    Definition Classes
    PartialFunction
  7. def runWith[U](action: (T) ⇒ U): (String) ⇒ Boolean
    Definition Classes
    PartialFunction
  8. def targetString: String
  9. def toString(): String
    Definition Classes
    Function1 → AnyRef → Any
  10. def zero: T