public class TypeAndValue
extends Object
Types
, value and isDecimal flagConstructor and Description |
---|
TypeAndValue(int type,
Object value)
Instantiates the TypeAndValue.
|
TypeAndValue(int type,
Object value,
boolean isDecimal)
Instantiates the TypeAndValue.
|
Modifier and Type | Method and Description |
---|---|
int |
getType()
Gets the type.
|
Object |
getValue()
Gets the value.
|
boolean |
isDecimal()
Checks if numeric value has decimal part.
|
void |
setDecimal(boolean isDecimal)
Sets the "is decimal" flag.
|
void |
setType(int type)
Sets the type.
|
void |
setValue(Object value)
Sets the value.
|
public TypeAndValue(int type, Object value, boolean isDecimal)
type
- the typevalue
- the valueisDecimal
- the is decimalpublic TypeAndValue(int type, Object value)
type
- the typevalue
- the valuepublic int getType()
public void setType(int type)
type
- the new typepublic Object getValue()
public void setValue(Object value)
value
- the new valuepublic boolean isDecimal()
public void setDecimal(boolean isDecimal)
isDecimal
- the new value for the "is decimal" flagCopyright © 2010-2020 Toolsverse. All Rights Reserved.