Package system
Class Decimal
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.ValueType
-
- system.Decimal
-
- All Implemented Interfaces:
IJCOBridgeReflected
,IDeserializationCallback
public class Decimal extends ValueType implements IDeserializationCallback
The base .NET class managing System.Decimal, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Decimal
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.String
assemblyShortName
Assembly name: mscorlibstatic java.lang.String
className
Qualified class name: System.Decimalstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Decimal
Add(Decimal d1, Decimal d2)
static Decimal
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoDecimal
, 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(NetObject value)
int
CompareTo(Decimal 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 namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class TypeTypeCode
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, NumberStyles style)
static Decimal
Parse(java.lang.String s, NumberStyles style, IFormatProvider provider)
static Decimal
Parse(java.lang.String s, 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(java.lang.String format)
java.lang.String
ToString(java.lang.String format, IFormatProvider provider)
java.lang.String
ToString(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)
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.runtime.serialization.IDeserializationCallback
OnDeserialization
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: mscorlib- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Decimal- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Decimal
public Decimal(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
Decimal
public Decimal() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Decimal
public Decimal(double value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Decimal
public Decimal(int value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Decimal
public Decimal(int lo, int mid, int hi, boolean isNegative, byte scale) throws java.lang.Throwable, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
-
Decimal
public Decimal(int[] bits) throws java.lang.Throwable, ArgumentNullException, ArgumentException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
-
Decimal
public Decimal(long value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Decimal
public Decimal(Single value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Decimal
public Decimal(UInt32 value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Decimal
public Decimal(UInt64 value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIDeserializationCallback
- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classValueType
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIDeserializationCallback
- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classValueType
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIDeserializationCallback
- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classValueType
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIDeserializationCallback
- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classValueType
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classValueType
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIDeserializationCallback
- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classValueType
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static Decimal cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoDecimal
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
Decimal
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
Equals
public boolean Equals(Decimal value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Equals
public static boolean Equals(Decimal d1, Decimal d2) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
TryParse
public 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
-
TryParse
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
-
ToByte
public static byte ToByte(Decimal value) throws java.lang.Throwable, OverflowException
- Throws:
java.lang.Throwable
OverflowException
-
ToDouble
public static double ToDouble(Decimal d) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ToInt16
public static short ToInt16(Decimal value) throws java.lang.Throwable, OverflowException
- Throws:
java.lang.Throwable
OverflowException
-
Compare
public static int Compare(Decimal d1, Decimal d2) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
CompareTo
public int CompareTo(Decimal value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
CompareTo
public int CompareTo(NetObject value) throws java.lang.Throwable, ArgumentException
- Throws:
java.lang.Throwable
ArgumentException
-
ToInt32
public static int ToInt32(Decimal d) throws java.lang.Throwable, OverflowException
- Throws:
java.lang.Throwable
OverflowException
-
GetBits
public static int[] GetBits(Decimal d) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ToInt64
public static long ToInt64(Decimal d) throws java.lang.Throwable, OverflowException
- Throws:
java.lang.Throwable
OverflowException
-
ToOACurrency
public static long ToOACurrency(Decimal value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ToSByte
public static SByte ToSByte(Decimal value) throws java.lang.Throwable, OverflowException
- Throws:
java.lang.Throwable
OverflowException
-
ToSingle
public static Single ToSingle(Decimal d) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Add
public static Decimal Add(Decimal d1, Decimal d2) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Ceiling
public static Decimal Ceiling(Decimal d) throws java.lang.Throwable, ArgumentException
- Throws:
java.lang.Throwable
ArgumentException
-
Divide
public static Decimal Divide(Decimal d1, Decimal d2) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Floor
public static Decimal Floor(Decimal d) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
FromOACurrency
public static Decimal FromOACurrency(long cy) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Multiply
public static Decimal Multiply(Decimal d1, Decimal d2) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Negate
public static Decimal Negate(Decimal d) throws java.lang.Throwable, ArgumentException
- Throws:
java.lang.Throwable
ArgumentException
-
Parse
public static Decimal Parse(java.lang.String s) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException, FormatException, OverflowException
-
Parse
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
-
Parse
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
-
Parse
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
-
Remainder
public static Decimal Remainder(Decimal d1, Decimal d2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
-
Round
public static Decimal Round(Decimal d) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Round
public static Decimal Round(Decimal d, int decimals) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Round
public static Decimal Round(Decimal d, int decimals, MidpointRounding mode) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, OutOfMemoryException, FormatException
-
Round
public static Decimal Round(Decimal d, MidpointRounding mode) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, OutOfMemoryException, FormatException
-
Subtract
public static Decimal Subtract(Decimal d1, Decimal d2) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Truncate
public static Decimal Truncate(Decimal d) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ToString
public java.lang.String ToString(IFormatProvider provider) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException
-
ToString
public java.lang.String ToString(java.lang.String format) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException, FormatException
-
ToString
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
-
GetTypeCode
public TypeCode GetTypeCode() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ToUInt16
public static UInt16 ToUInt16(Decimal value) throws java.lang.Throwable, OverflowException
- Throws:
java.lang.Throwable
OverflowException
-
ToUInt32
public static UInt32 ToUInt32(Decimal d) throws java.lang.Throwable, OverflowException
- Throws:
java.lang.Throwable
OverflowException
-
ToUInt64
public static UInt64 ToUInt64(Decimal d) throws java.lang.Throwable, OverflowException
- Throws:
java.lang.Throwable
OverflowException
-
-