public class IntegerValue extends AbstractValue implements Comparable<IntegerValue>
| Modifier and Type | Field and Description |
|---|---|
protected BigInteger |
bval |
static BigInteger |
INTEGER_MAX_VALUE |
static BigInteger |
INTEGER_MIN_VALUE |
protected int |
ival |
protected IntegerValueType |
iValType |
static BigInteger |
LONG_MAX_VALUE |
static BigInteger |
LONG_MIN_VALUE |
protected long |
lval |
static IntegerValue |
ZERO |
slen, valueType| Modifier and Type | Method and Description |
|---|---|
IntegerValue |
add(IntegerValue val) |
BigInteger |
bigIntegerValue() |
int |
compareTo(IntegerValue o) |
boolean |
equals(Object o) |
protected static String |
getAdjustedValue(String value) |
void |
getCharacters(char[] cbuffer,
int offset)
Fills character array with the value represented as String
|
int |
getCharactersLength()
Length of string representation
|
IntegerValueType |
getIntegerValueType() |
int |
hashCode() |
int |
intValue() |
boolean |
isPositive() |
long |
longValue() |
static IntegerValue |
parse(String value) |
IntegerValue |
subtract(IntegerValue val) |
static IntegerValue |
valueOf(BigInteger bval) |
static IntegerValue |
valueOf(int ival) |
static IntegerValue |
valueOf(long lval) |
getCharacters, getValueType, toString, toStringpublic static final IntegerValue ZERO
public static final BigInteger INTEGER_MIN_VALUE
public static final BigInteger INTEGER_MAX_VALUE
public static final BigInteger LONG_MIN_VALUE
public static final BigInteger LONG_MAX_VALUE
protected final int ival
protected final long lval
protected final BigInteger bval
protected final IntegerValueType iValType
public IntegerValueType getIntegerValueType()
public int intValue()
public long longValue()
public BigInteger bigIntegerValue()
public boolean isPositive()
public IntegerValue add(IntegerValue val)
public IntegerValue subtract(IntegerValue val)
public static IntegerValue valueOf(int ival)
public static IntegerValue valueOf(long lval)
public static IntegerValue valueOf(BigInteger bval)
public static IntegerValue parse(String value)
public int getCharactersLength()
ValuegetCharactersLength in interface Valuepublic void getCharacters(char[] cbuffer,
int offset)
ValuegetCharacters in interface Valuecbuffer - character bufferoffset - character buffer offsetpublic int compareTo(IntegerValue o)
compareTo in interface Comparable<IntegerValue>Copyright © 2018 Siemens AG. All rights reserved.