ParseableBoolean

com.phasmidsoftware.tableparser.core.parse.Parseable.ParseableBoolean
See theParseableBoolean companion trait

Attributes

Companion
trait
Graph
Supertypes
trait Parseable[Boolean]
class Object
trait Matchable
class Any
Self type

Members list

Value members

Inherited methods

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

Parses the given string s into a Boolean, optionally applying optModifier. The method attempts to convert the string to a Boolean using parseAndRecover, which provides recovery logic for invalid inputs by wrapping them in appropriate exceptions.

Parses the given string s into a Boolean, optionally applying optModifier. The method attempts to convert the string to a Boolean using parseAndRecover, which provides recovery logic for invalid inputs by wrapping them in appropriate exceptions.

Value parameters

optModifier

an optional modifier that can affect the parsing process (not utilized in the current implementation).

s

the input string to be parsed into a Boolean.

Attributes

Returns

a Try containing Boolean on success, or a Failure with an appropriate exception on error.

Inherited from:
ParseableBoolean