StringConverter

com.phasmidsoftware.tableparser.core.parse.StringConverter
trait StringConverter[+T]

Trait to convert a String into a T (see CellParser, which extends it).

NOTE: up to 2.0, the companion object had instances for the basic types, but nothing used them (CellParser's own instances are found instead).

Type parameters

T

the type of the result.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def convertString(w: String): Try[T]

Convert a String into a T.

Convert a String into a T.

Value parameters

w

the String to be converted.

Attributes

Returns

a new instance of T wrapped in Try