The Parseable object provides a set of predefined Parseable type class instances that enable parsing of String representations into instances of various data types. These parsers operate based on the Parseable[T] trait, which defines a parse method that returns a Try[T].
This framework is designed to handle common data parsing scenarios with support for additional parsing behaviors through optional modifiers.
The parsers handle parsing errors gracefully, returning a Failure instance with an appropriate exception message when parsing fails.
Attributes
Members list
Type members
Classlikes
Attributes
- Companion
- trait
- Supertypes
- Self type
-
ParseableBigDecimal.type
Parser of BigDecimal.
Parser of BigDecimal.
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
object ParseableBigDecimal
Attributes
- Companion
- trait
- Supertypes
- Self type
-
ParseableBigInt.type
Parser of BigInt.
Attributes
- Companion
- trait
- Supertypes
- Self type
-
ParseableBoolean.type
Parser of Boolean.
Attributes
- Companion
- trait
- Supertypes
- Self type
-
ParseableByte.type
Parser of Byte.
Attributes
- Companion
- trait
- Supertypes
- Self type
-
ParseableChar.type
Parser of Char.
Attributes
- Companion
- trait
- Supertypes
- Self type
-
ParseableDouble.type
Parser of Double.
Attributes
- Companion
- trait
- Supertypes
- Self type
-
ParseableFile.type
Parser of File.
Attributes
- Companion
- trait
- Supertypes
- Self type
-
ParseableFloat.type
Parser of Float.
Attributes
- Companion
- trait
- Supertypes
- Self type
-
ParseableInt.type
Parser of Int.
Attributes
- Companion
- trait
- Supertypes
- Self type
-
ParseableLocalDate.type
Parser of LocalDate.
Parser of LocalDate.
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
object ParseableLocalDate
Attributes
- Companion
- trait
- Supertypes
- Self type
-
ParseableLong.type
Parser of Long.
Attributes
- Companion
- trait
- Supertypes
- Self type
-
ParseablePath.type
A trait representing a path that can be parsed from a String.
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
- Supertypes
- Known subtypes
-
object ParseablePath
Attributes
- Companion
- trait
- Supertypes
- Self type
-
ParseableShort.type
Parser of Short.
Attributes
- Companion
- trait
- Supertypes
- Self type
-
ParseableString.type
Parser of String. The exception is useful for ensuring a None in the case of an optional String.
Parser of String. The exception is useful for ensuring a None in the case of an optional String.
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
object ParseableString
Attributes
- Companion
- trait
- Supertypes
- Self type
-
ParseableStringList.type
Parser of StringList. This trait splits strings of the form {x,y,z}, regardless of the format specified by the RowConfig object.
Parser of StringList. This trait splits strings of the form {x,y,z}, regardless of the format specified by the RowConfig object.
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
object ParseableStringList
Attributes
- Companion
- trait
- Supertypes
- Self type
-
ParseableURL.type
Parser of URL.
Value members
Concrete methods
Method to split a String into a StringList, parser.list.
Method to split a String into a StringList, parser.list.
Value parameters
- w
-
the String to parse.
Attributes
- Returns
-
a Try[StringList].