ParseableLong

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

A trait that provides parsing functionality for strings into Long values.

Attributes

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

Members list

Value members

Concrete 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.

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.

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

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+).