public final class IntValue extends PrimitiveValueBase
Constructor and Description |
---|
IntValue()
Constructor.
|
IntValue(Integer intValue)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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 int |
parseString(String value)
Parse string value returning a int.
|
static int[] |
parseString(String[] values)
Parse the string array returning a int array.
|
void |
setInt(int x)
Set an int value.
|
String |
toString() |
parse, setBoolean, setByte, setDouble, setFloat, setLong, setShort, setString
public IntValue()
public IntValue(Integer intValue)
intValue
- is the value to set topublic PrimitiveValueType getType()
PrimitiveValue
public static int[] parseString(String[] values)
values
- - string arraypublic static int parseString(String value)
value
- to parsepublic final void parse(String value)
PrimitiveValue
value
- is the textual value to parsepublic final Object getValueObject()
PrimitiveValue
public final void setInt(int x)
PrimitiveValue
setInt
in interface PrimitiveValue
setInt
in class PrimitiveValueBase
x
- is the value to set