com.jniwrapper.win32.automation.types
Class Decimal
java.lang.Object
com.jniwrapper.Parameter
com.jniwrapper.Structure
com.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
Fields inherited from class com.jniwrapper.Structure |
f |
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 |
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)
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