org.sblim.cimclient.internal.uri

Class IntegerValue

public class IntegerValue extends Value

Class IntegerValue parses and encapsulates an integer value.
Method Summary
BigIntegerbigIntValue()
bigIntValue
intbitLength()
bitLength
bytebyteValue()
byteValue
intgetBitWidth()
getBitWidth
intintValue()
intValue
booleanisNegative()
isNegative
booleanisSigned()
isSigned
longlongValue()
longValue
static Valueparse(URIString pUriStr)
Parses an untyped integer value.
static ValueparseSigned(URIString pUriStr, int pBitWidth)
parseSigned
static ValueparseUnsigned(URIString pUriStr, int pBitWidth)
parseUnsigned
shortshortValue()
shortValue

Method Detail

bigIntValue

public BigInteger bigIntValue()
bigIntValue

Returns: BigInteger

bitLength

public int bitLength()
bitLength

Returns: the number of bits which is required for storing this integer value.

byteValue

public byte byteValue()
byteValue

Returns: byte

getBitWidth

public int getBitWidth()
getBitWidth

Returns: 8, 16, 32 or 64

intValue

public int intValue()
intValue

Returns: int

isNegative

public boolean isNegative()
isNegative

Returns: true if the number is negative

isSigned

public boolean isSigned()
isSigned

Returns: true if the number is signed integer

longValue

public long longValue()
longValue

Returns: long

parse

public static Value parse(URIString pUriStr)
Parses an untyped integer value.

Parameters: pUriStr

Returns: a Value

parseSigned

public static Value parseSigned(URIString pUriStr, int pBitWidth)
parseSigned

Parameters: pUriStr pBitWidth

Returns: Value

Throws: IllegalArgumentException if parsing failed.

parseUnsigned

public static Value parseUnsigned(URIString pUriStr, int pBitWidth)
parseUnsigned

Parameters: pUriStr pBitWidth

Returns: Value

Throws: IllegalArgumentException if parsing failed.

shortValue

public short shortValue()
shortValue

Returns: short

Copyright © 2005, 2010 IBM Corporation. All Rights Reserved.