public final class LongValue extends PrimitiveValueBase
Constructor and Description |
---|
LongValue() |
Modifier and Type | Method and Description |
---|---|
long |
getLong()
Returns the long value.
|
PrimitiveValueType |
getType()
Returns the type of primitive value this instance represents.
|
Object |
getValueObject()
Returns a value object.
|
void |
parse(String value)
Parse the string literal value into the specific data type.
|
static long |
parseString(String value)
Parse the string containing a long value.
|
static long[] |
parseString(String[] values)
Parse the string array returning a long array.
|
void |
setLong(long x)
Set a long value.
|
String |
toString() |
parse, setBoolean, setByte, setDouble, setFloat, setInt, setShort, setString
public PrimitiveValueType getType()
PrimitiveValue
public final void parse(String value)
PrimitiveValue
value
- is the textual value to parsepublic static long parseString(String value)
value
- is the textual long valuepublic static long[] parseString(String[] values)
values
- - string arraypublic final Object getValueObject()
PrimitiveValue
public final void setLong(long x)
PrimitiveValue
setLong
in interface PrimitiveValue
setLong
in class PrimitiveValueBase
x
- is the value to setpublic final long getLong()