ParseablePath

com.phasmidsoftware.tableparser.core.parse.Parseable.ParseablePath
See theParseablePath companion object
trait ParseablePath extends Parseable[Path]

A trait representing a path that can be parsed from a String.

This type class extends Parseable[java.nio.file.Path], enabling the parsing of String inputs into java.nio.file.Path objects. It provides a default implementation of the parse method, leveraging utility methods such as lift and parseAndRecover to handle parsing and recovery in case of errors.

Attributes

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

Members list

Value members

Concrete methods

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

Parse a String as a Try[T].

Parse a String as a Try[T].

Value parameters

s

the String to be parsed.

Attributes

Returns

the corresponding value of type T, wrapped in Try.