ParseableLong

com.phasmidsoftware.gryphon.parse.Parseable.ParseableLong
See theParseableLong companion trait
object ParseableLong extends ParseableLong

An implicit object that provides an implementation of the Parseable typeclass for Long.

Attributes

Companion
trait
Graph
Supertypes
trait Parseable[Long]
class Object
trait Matchable
class Any
Self type

Members list

Value members

Inherited methods

def message: String

Returns a message providing details about of type T.

Returns a message providing details about of type T.

Attributes

Returns

The message.

Inherited from:
ParseableLong
def none: Long

Returns a default value of type T.

Returns a default value of type T.

Attributes

Returns

the default value of type T, typically representing an "empty" or "none" state.

Inherited from:
ParseableLong
def parse(input: String): Try[Long]

Parses the input string into an instance of type T. The parsing process utilizes the logic provided by the implementation of the parse method in the corresponding Parseable[T] instance.

Parses the input string into an instance of type T. The parsing process utilizes the logic provided by the implementation of the parse method in the corresponding Parseable[T] instance.

Value parameters

input

the string to be parsed into an instance of type T

Attributes

Returns

Try wrapping the resulting parsed object of type T if successful, or Failure with the corresponding exception if parsing fails

Inherited from:
ParseableLong
def regex: Regex

The regular expression used for parsing a Parseable[T].

The regular expression used for parsing a Parseable[T].

Attributes

Returns

A compiled regular expression. By default, the result matches one or more word characters (\w+).

Inherited from:
ParseableLong