ParseableOptionInt

com.phasmidsoftware.tableparser.core.parse.ParseableOption.ParseableOptionInt
object ParseableOptionInt extends ParseableOption[Int]

Attributes

Graph
Supertypes
class ParseableOption[Int]
trait Parseable[Option[Int]]
class Object
trait Matchable
class Any
Self type

Members list

Value members

Inherited methods

def parse(s: String, optModifier: Option[String]): Try[Option[Int]]

Parses a given string into an optional value of type T, handling blank input as None.

Parses a given string into an optional value of type T, handling blank input as None.

This method utilizes an implicit Parseable[T] to parse the input string. If the string is deemed blank (causing a BlankException), the result will be a Success(None). Otherwise, it will attempt to parse the string into a value of type T and wrap the result in an Option.

Value parameters

optModifier

an optional modifier that may influence parsing behavior.

s

the input string to be parsed.

Attributes

Returns

a Try containing an optional value of type T if parsing succeeds, or an error if parsing fails for other exceptions.

Inherited from:
ParseableOption