object Parseable

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.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Parseable
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. trait ParseableBigDecimal extends Parseable[BigDecimal]

    Parser of BigDecimal.

  2. trait ParseableBigInt extends Parseable[BigInt]

    Parser of BigInt.

  3. trait ParseableBoolean extends Parseable[Boolean]

    Parser of Boolean.

  4. trait ParseableByte extends Parseable[Byte]

    Parser of Byte.

  5. trait ParseableChar extends Parseable[Char]

    Parser of Char.

  6. trait ParseableDouble extends Parseable[Double]

    Parser of Double.

  7. trait ParseableFile extends Parseable[File]

    Parser of File.

  8. trait ParseableFloat extends Parseable[Float]

    Parser of Float.

  9. trait ParseableInt extends Parseable[Int]

    Parser of Int.

  10. trait ParseableLocalDate extends Parseable[LocalDate]

    Parser of LocalDate.

  11. trait ParseableLong extends Parseable[Long]

    Parser of Long.

  12. trait ParseablePath extends Parseable[Path]

    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.

  13. trait ParseableShort extends Parseable[Short]

    Parser of Short.

  14. trait ParseableString extends Parseable[String]

    Parser of String.

    Parser of String. The exception is useful for ensuring a None in the case of an optional String.

  15. trait ParseableStringList extends Parseable[StringList]

    Parser of StringList.

    Parser of StringList. This trait splits strings of the form {x,y,z}, regardless of the format specified by the RowConfig object.

  16. trait ParseableURL extends Parseable[URL]

    Parser of URL.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. def split(w: String): Try[StringList]

    Method to split a String into a StringList, parser.list.

    Method to split a String into a StringList, parser.list.

    w

    the String to parse.

    returns

    a Try[StringList].

  15. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  16. def toString(): String
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  20. implicit object ParseableBigDecimal extends ParseableBigDecimal
  21. implicit object ParseableBigInt extends ParseableBigInt
  22. implicit object ParseableBoolean extends ParseableBoolean
  23. implicit object ParseableByte extends ParseableByte
  24. implicit object ParseableChar extends ParseableChar
  25. implicit object ParseableDouble extends ParseableDouble
  26. implicit object ParseableFile extends ParseableFile
  27. implicit object ParseableFloat extends ParseableFloat
  28. implicit object ParseableInt extends ParseableInt
  29. implicit object ParseableLocalDate extends ParseableLocalDate
  30. implicit object ParseableLong extends ParseableLong
  31. implicit object ParseablePath extends ParseablePath
  32. implicit object ParseableShort extends ParseableShort
  33. implicit object ParseableString extends ParseableString
  34. implicit object ParseableStringList extends ParseableStringList
  35. implicit object ParseableURL extends ParseableURL

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped