ParseableShort

com.phasmidsoftware.tableparser.core.parse.Parseable.ParseableShort
See theParseableShort companion object
trait ParseableShort extends Parseable[Short]

Parser of Short.

Attributes

Companion
object
Graph
Supertypes
trait Parseable[Short]
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

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

Parses the given string into a Short, applying optional modifications if provided. If the string cannot be parsed, a descriptive error message will be returned encapsulated in a Failure.

Parses the given string into a Short, applying optional modifications if provided. If the string cannot be parsed, a descriptive error message will be returned encapsulated in a Failure.

Value parameters

optModifier

an optional modifier string that can influence parsing behavior (not utilized explicitly in this implementation).

s

the input string to parse.

Attributes

Returns

a Try[Short] which is a Success containing the parsed Short if successful, or a Failure containing an error if parsing fails.