public class Decimal extends ValueType implements IDeserializationCallback
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Decimal
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: mscorlib
|
static java.lang.String |
className
Qualified class name: System.Decimal
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Decimal() |
Decimal(double value) |
Decimal(int value) |
Decimal(int[] bits) |
Decimal(int lo,
int mid,
int hi,
boolean isNegative,
byte scale) |
Decimal(long value) |
Decimal(java.lang.Object instance)
Internal constructor.
|
Decimal(Single value) |
Decimal(UInt32 value) |
Decimal(UInt64 value) |
| Modifier and Type | Method and Description |
|---|---|
static Decimal |
Add(Decimal d1,
Decimal d2) |
static Decimal |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Decimal, a cast assert is made to check if types are compatible. |
static Decimal |
Ceiling(Decimal d) |
static int |
Compare(Decimal d1,
Decimal d2) |
int |
CompareTo(Decimal value) |
int |
CompareTo(NetObject value) |
static Decimal |
Divide(Decimal d1,
Decimal d2) |
boolean |
Equals(Decimal value) |
static boolean |
Equals(Decimal d1,
Decimal d2) |
static Decimal |
Floor(Decimal d) |
static Decimal |
FromOACurrency(long cy) |
static int[] |
GetBits(Decimal d) |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
TypeCode |
GetTypeCode() |
static Decimal |
Multiply(Decimal d1,
Decimal d2) |
static Decimal |
Negate(Decimal d) |
static Decimal |
Parse(java.lang.String s) |
static Decimal |
Parse(java.lang.String s,
IFormatProvider provider) |
static Decimal |
Parse(java.lang.String s,
NumberStyles style) |
static Decimal |
Parse(java.lang.String s,
NumberStyles style,
IFormatProvider provider) |
static Decimal |
Remainder(Decimal d1,
Decimal d2) |
static Decimal |
Round(Decimal d) |
static Decimal |
Round(Decimal d,
int decimals) |
static Decimal |
Round(Decimal d,
int decimals,
MidpointRounding mode) |
static Decimal |
Round(Decimal d,
MidpointRounding mode) |
void |
setJCOInstance(JCObject instance) |
static Decimal |
Subtract(Decimal d1,
Decimal d2) |
static byte |
ToByte(Decimal value) |
static double |
ToDouble(Decimal d) |
static short |
ToInt16(Decimal value) |
static int |
ToInt32(Decimal d) |
static long |
ToInt64(Decimal d) |
static long |
ToOACurrency(Decimal value) |
static SByte |
ToSByte(Decimal value) |
static Single |
ToSingle(Decimal d) |
java.lang.String |
ToString(IFormatProvider provider) |
java.lang.String |
ToString(java.lang.String format) |
java.lang.String |
ToString(java.lang.String format,
IFormatProvider provider) |
static UInt16 |
ToUInt16(Decimal value) |
static UInt32 |
ToUInt32(Decimal d) |
static UInt64 |
ToUInt64(Decimal d) |
static Decimal |
Truncate(Decimal d) |
static boolean |
TryParse(java.lang.String s,
JCORefOut<Decimal> result) |
static boolean |
TryParse(java.lang.String s,
NumberStyles style,
IFormatProvider provider,
JCORefOut<Decimal> result) |
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToStringOnDeserialization, ToIDeserializationCallbackpublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Decimal()
throws java.lang.Throwable
java.lang.Throwablepublic Decimal(double value)
throws java.lang.Throwable
java.lang.Throwablepublic Decimal(int value)
throws java.lang.Throwable
java.lang.Throwablepublic Decimal(int[] bits)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic Decimal(int lo,
int mid,
int hi,
boolean isNegative,
byte scale)
throws java.lang.Throwable,
ArgumentOutOfRangeException
java.lang.ThrowableArgumentOutOfRangeExceptionpublic Decimal(long value)
throws java.lang.Throwable
java.lang.Throwablepublic Decimal(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic Decimal(Single value) throws java.lang.Throwable
java.lang.Throwablepublic Decimal(UInt32 value) throws java.lang.Throwable
java.lang.Throwablepublic Decimal(UInt64 value) throws java.lang.Throwable
java.lang.Throwablepublic static Decimal Add(Decimal d1, Decimal d2) throws java.lang.Throwable
java.lang.Throwablepublic static Decimal cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Decimal, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedDecimal instancejava.lang.Throwable - in case of error during cast operationpublic static Decimal Ceiling(Decimal d) throws java.lang.Throwable, ArgumentException
java.lang.ThrowableArgumentExceptionpublic static int Compare(Decimal d1, Decimal d2) throws java.lang.Throwable
java.lang.Throwablepublic int CompareTo(Decimal value) throws java.lang.Throwable
java.lang.Throwablepublic int CompareTo(NetObject value) throws java.lang.Throwable, ArgumentException
java.lang.ThrowableArgumentExceptionpublic static Decimal Divide(Decimal d1, Decimal d2) throws java.lang.Throwable
java.lang.Throwablepublic boolean Equals(Decimal value) throws java.lang.Throwable
java.lang.Throwablepublic static boolean Equals(Decimal d1, Decimal d2) throws java.lang.Throwable
java.lang.Throwablepublic static Decimal FromOACurrency(long cy) throws java.lang.Throwable
java.lang.Throwablepublic static int[] GetBits(Decimal d) throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in interface IDeserializationCallbackgetJCOAssemblyName in class ValueTypeString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in interface IDeserializationCallbackgetJCOClassName in class ValueTypeString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in interface IDeserializationCallbackgetJCOInstance in class ValueTypeObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in interface IDeserializationCallbackgetJCOObjectName in class ValueTypeString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in interface IDeserializationCallbackgetJCOType in class ValueTypeJCType representing the CLR Type of the instantiated Classpublic TypeCode GetTypeCode() throws java.lang.Throwable
java.lang.Throwablepublic static Decimal Multiply(Decimal d1, Decimal d2) throws java.lang.Throwable
java.lang.Throwablepublic static Decimal Negate(Decimal d) throws java.lang.Throwable, ArgumentException
java.lang.ThrowableArgumentExceptionpublic static Decimal Parse(java.lang.String s) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException, FormatException, OverflowException
public static Decimal Parse(java.lang.String s, IFormatProvider provider) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException, FormatException, OverflowException
public static Decimal Parse(java.lang.String s, NumberStyles style) throws java.lang.Throwable, ArgumentException, ArgumentNullException, TypeLoadException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException, FormatException, OverflowException
public static Decimal Parse(java.lang.String s, NumberStyles style, IFormatProvider provider) throws java.lang.Throwable, ArgumentException, ArgumentNullException, TypeLoadException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException, FormatException, OverflowException
public static Decimal Remainder(Decimal d1, Decimal d2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionpublic static Decimal Round(Decimal d, int decimals) throws java.lang.Throwable
java.lang.Throwablepublic static Decimal Round(Decimal d, int decimals, MidpointRounding mode) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, OutOfMemoryException, FormatException
public static Decimal Round(Decimal d, MidpointRounding mode) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, OutOfMemoryException, FormatException
public void setJCOInstance(JCObject instance)
setJCOInstance in class ValueTypepublic static Decimal Subtract(Decimal d1, Decimal d2) throws java.lang.Throwable
java.lang.Throwablepublic static byte ToByte(Decimal value) throws java.lang.Throwable, OverflowException
java.lang.ThrowableOverflowExceptionpublic static double ToDouble(Decimal d) throws java.lang.Throwable
java.lang.Throwablepublic static short ToInt16(Decimal value) throws java.lang.Throwable, OverflowException
java.lang.ThrowableOverflowExceptionpublic static int ToInt32(Decimal d) throws java.lang.Throwable, OverflowException
java.lang.ThrowableOverflowExceptionpublic static long ToInt64(Decimal d) throws java.lang.Throwable, OverflowException
java.lang.ThrowableOverflowExceptionpublic static long ToOACurrency(Decimal value) throws java.lang.Throwable
java.lang.Throwablepublic static SByte ToSByte(Decimal value) throws java.lang.Throwable, OverflowException
java.lang.ThrowableOverflowExceptionpublic static Single ToSingle(Decimal d) throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String ToString(IFormatProvider provider) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException
public java.lang.String ToString(java.lang.String format)
throws java.lang.Throwable,
ArgumentNullException,
TypeLoadException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotSupportedException,
CultureNotFoundException,
ArgumentOutOfRangeException,
TypeInitializationException,
FormatException
public java.lang.String ToString(java.lang.String format,
IFormatProvider provider)
throws java.lang.Throwable,
ArgumentNullException,
TypeLoadException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotSupportedException,
CultureNotFoundException,
ArgumentOutOfRangeException,
TypeInitializationException
public static UInt16 ToUInt16(Decimal value) throws java.lang.Throwable, OverflowException
java.lang.ThrowableOverflowExceptionpublic static UInt32 ToUInt32(Decimal d) throws java.lang.Throwable, OverflowException
java.lang.ThrowableOverflowExceptionpublic static UInt64 ToUInt64(Decimal d) throws java.lang.Throwable, OverflowException
java.lang.ThrowableOverflowExceptionpublic static Decimal Truncate(Decimal d) throws java.lang.Throwable
java.lang.Throwablepublic static boolean TryParse(java.lang.String s,
JCORefOut<Decimal> result)
throws java.lang.Throwable,
ArgumentNullException,
TypeLoadException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotSupportedException,
CultureNotFoundException,
ArgumentOutOfRangeException,
TypeInitializationException,
FormatException
public static boolean TryParse(java.lang.String s,
NumberStyles style,
IFormatProvider provider,
JCORefOut<Decimal> result)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
TypeLoadException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotSupportedException,
CultureNotFoundException,
ArgumentOutOfRangeException,
TypeInitializationException