A trait that provides an implementation of the Parseable typeclass for the String type.
This trait allows parsing a string input into an optional value of type String. It is mainly used in contexts where type-safe and consistent string parsing is required.
Parses the input string and returns an optional string based on the validity of the input. If the input string is non-null and non-empty, it is wrapped in an Option and returned. Otherwise, None is returned.
Parses the input string and returns an optional string based on the validity of the input. If the input string is non-null and non-empty, it is wrapped in an Option and returned. Otherwise, None is returned.
Value parameters
input
the input string to parse. It can be null or empty.
Attributes
Returns
an Option[String] containing the input string if it is non-null and non-empty, or None otherwise.