public class StrType extends BaseValueType<String>
String type.
This class is threadsafe and uses a singleton pattern to prevent multiple instances, since all users can safely share the same instance.
clazzType| Modifier and Type | Method and Description |
|---|---|
String |
cast(Object o)
Attempt to cast the passed object to the generic type T.
|
static StrType |
instance() |
String |
parse(String sourceValue)
To parse the String type, the passed String is simply returned.
|
getDestinationType, isParsable, toStringpublic String parse(String sourceValue) throws ParsingException
sourceValue - The source string, which should already be trimmed and may be nullParsingException - (never thrown)public String cast(Object o) throws RuntimeException
ValueTypeRuntimeExceptionCopyright © 2021. All rights reserved.