ParseableLocalDate

com.phasmidsoftware.tableparser.core.parse.Parseable.ParseableLocalDate
See theParseableLocalDate companion object
trait ParseableLocalDate extends Parseable[LocalDate]

Parser of LocalDate.

Attributes

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

Members list

Value members

Concrete methods

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

Parses a given string into a LocalDate object. Attempts to parse the input string using the LocalDate.parse method, with optional modifications provided by the optModifier. If parsing fails, it recovers with a failure including an appropriate error message.

Parses a given string into a LocalDate object. Attempts to parse the input string using the LocalDate.parse method, with optional modifications provided by the optModifier. If parsing fails, it recovers with a failure including an appropriate error message.

Value parameters

optModifier

an optional modifier that could alter the parsing logic (not utilized in this implementation).

s

the input string to be parsed into a LocalDate.

Attributes

Returns

a Try[LocalDate] that will contain a LocalDate if parsing succeeds, or a Failure if it fails.