Instance Constructors
-
new
FromString
()(implicit m: OptManifest[T])
Abstract Value Members
-
def
apply
(s: String): T
Concrete Value Members
-
def
!=
(arg0: AnyRef): Boolean
-
def
!=
(arg0: Any): Boolean
-
def
##
(): Int
-
def
==
(arg0: AnyRef): Boolean
-
def
==
(arg0: Any): Boolean
-
def
andThen
[C]
(k: (T) ⇒ C): PartialFunction[String, C]
-
def
asInstanceOf
[T0]
: T0
-
def
clone
(): AnyRef
-
def
compose
[A]
(g: (A) ⇒ String): (A) ⇒ T
-
def
eq
(arg0: AnyRef): Boolean
-
def
equals
(arg0: Any): Boolean
-
def
finalize
(): Unit
-
def
getClass
(): java.lang.Class[_]
-
def
hashCode
(): Int
-
def
isDefinedAt
(s: String): Boolean
-
def
isInstanceOf
[T0]
: Boolean
-
def
lift
: (String) ⇒ Option[T]
-
def
ne
(arg0: AnyRef): Boolean
-
def
notify
(): Unit
-
def
notifyAll
(): Unit
-
def
orElse
[A1 <: String, B1 >: T]
(that: PartialFunction[A1, B1]): PartialFunction[A1, B1]
-
def
synchronized
[T0]
(arg0: ⇒ T0): T0
-
def
targetString
: String
-
def
toString
(): String
-
def
wait
(): Unit
-
def
wait
(arg0: Long, arg1: Int): Unit
-
def
wait
(arg0: Long): Unit
-
def
zero
: T
Inherited from PartialFunction[String, T]
Inherited from (String) ⇒ T
Inherited from AnyRef
Inherited from Any
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.