public class DecimalValue extends AbstractValue
| Modifier and Type | Field and Description |
|---|---|
protected BigDecimal |
bd |
protected IntegerValue |
integral |
protected boolean |
negative |
protected IntegerValue |
revFractional |
protected StringBuilder |
sbHelper |
slen, valueType| Constructor and Description |
|---|
DecimalValue(boolean negative,
IntegerValue integral,
IntegerValue revFractional) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
void |
getCharacters(char[] cbuffer,
int offset)
Fills character array with the value represented as String
|
int |
getCharactersLength()
Length of string representation
|
IntegerValue |
getIntegral() |
IntegerValue |
getRevFractional() |
int |
hashCode() |
boolean |
isNegative() |
static DecimalValue |
parse(BigDecimal decimal) |
static DecimalValue |
parse(String decimal) |
BigDecimal |
toBigDecimal() |
getCharacters, getValueType, toString, toStringprotected final boolean negative
protected final IntegerValue integral
protected final IntegerValue revFractional
protected BigDecimal bd
protected StringBuilder sbHelper
public DecimalValue(boolean negative,
IntegerValue integral,
IntegerValue revFractional)
public boolean isNegative()
public IntegerValue getIntegral()
public IntegerValue getRevFractional()
public static DecimalValue parse(BigDecimal decimal)
public static DecimalValue parse(String decimal)
public BigDecimal toBigDecimal()
public int getCharactersLength()
Valuepublic void getCharacters(char[] cbuffer,
int offset)
Valuecbuffer - character bufferoffset - character buffer offsetCopyright © 2018 Siemens AG. All rights reserved.