com.jniwrapper.win32.automation.types
Class Decimal

java.lang.Object
  extended bycom.jniwrapper.Parameter
      extended bycom.jniwrapper.Structure
          extended bycom.jniwrapper.win32.automation.types.Decimal
All Implemented Interfaces:
AlignmentAwareParameter, CompositeParameter

public class Decimal
extends Structure

This structure represents a decimal data type and corresponds to DECIMAL native structure.

See Also:
Microsoft Automation SDK documentation

Field Summary
 
Fields inherited from class com.jniwrapper.Structure
f
 
Fields inherited from class com.jniwrapper.Parameter
LICENSE_TYPE, V
 
Constructor Summary
Decimal()
           
Decimal(Decimal that)
           
Decimal(double value)
          Creates decimal value from a double value.
 
Method Summary
 double asDouble()
          Converst this decimal value to double value.
 java.lang.Object clone()
           
 void fromDouble(double value)
          Converts the specified double value to Decimal value.
 long getHi32()
           
 long getLo32()
           
 long getLo64()
           
 long getMid32()
           
 short getScale()
           
 short getSign()
           
 short getSignScale()
           
 void setHi32(long value)
           
 void setLo32(long value)
           
 void setLo64(long value)
           
 void setMid32(long value)
           
 void setScale(short value)
           
 void setSign(short value)
           
 void setSignScale(short value)
           
 
Methods inherited from class com.jniwrapper.Structure
a, a, acceptIOPerformer, addMembers, computeLength, equals, getAlignmentRequirement, getDebugInfo, getFirstMemberSize, getLength, getMember, getMembers, getOffsets, init, init, initFrom, pop, push, read, setDataBuffer, write
 
Methods inherited from class com.jniwrapper.Parameter
, a, asReturnValue, b, dataBufferAssigned, getAlignedLength, getDataBuffer, getDataBufferOffset, hashCode, indent, read, read, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Decimal

public Decimal()

Decimal

public Decimal(double value)
Creates decimal value from a double value.

Parameters:
value - input double value

Decimal

public Decimal(Decimal that)
Method Detail

getScale

public short getScale()

setScale

public void setScale(short value)

getSign

public short getSign()

setSign

public void setSign(short value)

getSignScale

public short getSignScale()

setSignScale

public void setSignScale(short value)

getHi32

public long getHi32()

setHi32

public void setHi32(long value)

getLo32

public long getLo32()

setLo32

public void setLo32(long value)

getMid32

public long getMid32()

setMid32

public void setMid32(long value)

getLo64

public long getLo64()

setLo64

public void setLo64(long value)

clone

public java.lang.Object clone()

fromDouble

public void fromDouble(double value)
                throws ComException
Converts the specified double value to Decimal value.

Parameters:
value - input double value
Throws:
ComException

asDouble

public double asDouble()
Converst this decimal value to double value.

Returns:
double presentation of this decimal value