public class LngType extends BaseValueType<Long>
Long 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 |
|---|---|
Long |
cast(Object o)
Attempt to cast the passed object to the generic type T.
|
static LngType |
get()
Deprecated.
since 0.4.1. Use
instance() instead |
static LngType |
instance() |
Long |
parse(String sourceValue)
Parses a String to a
Long. |
getDestinationType, isParsable, toString@Deprecated public static LngType get()
instance() insteadLngType()public Long parse(String sourceValue) throws ParsingException
Long. The String should already be trimmed.
Parsing is done via Long.parseLong(String).
sourceValue - The source string, which should already be trimmed and may be nullParsingException - if unparsable.public Long cast(Object o) throws RuntimeException
ValueTypeRuntimeExceptionCopyright © 2021. All rights reserved.