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.StringassemblyFullNameFully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: mscorlibstatic java.lang.StringclassNameQualified class name: System.Decimalstatic JCTypeclassTypeThe 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 DecimalAdd(Decimal d1, Decimal d2)static Decimalcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoDecimal, a cast assert is made to check if types are compatible.static DecimalCeiling(Decimal d)static intCompare(Decimal d1, Decimal d2)intCompareTo(NetObject value)intCompareTo(Decimal value)static DecimalDivide(Decimal d1, Decimal d2)booleanEquals(Decimal value)static booleanEquals(Decimal d1, Decimal d2)static DecimalFloor(Decimal d)static DecimalFromOACurrency(long cy)static int[]GetBits(Decimal d)java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeTypeCodeGetTypeCode()static DecimalMultiply(Decimal d1, Decimal d2)static DecimalNegate(Decimal d)static DecimalParse(java.lang.String s)static DecimalParse(java.lang.String s, NumberStyles style)static DecimalParse(java.lang.String s, NumberStyles style, IFormatProvider provider)static DecimalParse(java.lang.String s, IFormatProvider provider)static DecimalRemainder(Decimal d1, Decimal d2)static DecimalRound(Decimal d)static DecimalRound(Decimal d, int decimals)static DecimalRound(Decimal d, int decimals, MidpointRounding mode)static DecimalRound(Decimal d, MidpointRounding mode)voidsetJCOInstance(JCObject instance)static DecimalSubtract(Decimal d1, Decimal d2)static byteToByte(Decimal value)static doubleToDouble(Decimal d)static shortToInt16(Decimal value)static intToInt32(Decimal d)static longToInt64(Decimal d)static longToOACurrency(Decimal value)static SByteToSByte(Decimal value)static SingleToSingle(Decimal d)java.lang.StringToString(java.lang.String format)java.lang.StringToString(java.lang.String format, IFormatProvider provider)java.lang.StringToString(IFormatProvider provider)static UInt16ToUInt16(Decimal value)static UInt32ToUInt32(Decimal d)static UInt64ToUInt64(Decimal d)static DecimalTruncate(Decimal d)static booleanTryParse(java.lang.String s, JCORefOut<Decimal> result)static booleanTryParse(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.ThrowableInternal 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.ThrowableArgumentOutOfRangeException
-
Decimal
public Decimal(int[] bits) throws java.lang.Throwable, ArgumentNullException, ArgumentException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentException
-
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:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIDeserializationCallback- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classValueType- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIDeserializationCallback- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classValueType- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIDeserializationCallback- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classValueType- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIDeserializationCallback- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classValueType- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classValueType
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIDeserializationCallback- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classValueType- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static Decimal cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoDecimal, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
Decimalinstance- 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.ThrowableOverflowException
-
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.ThrowableOverflowException
-
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.ThrowableArgumentException
-
ToInt32
public static int ToInt32(Decimal d) throws java.lang.Throwable, OverflowException
- Throws:
java.lang.ThrowableOverflowException
-
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.ThrowableOverflowException
-
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.ThrowableOverflowException
-
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.ThrowableArgumentException
-
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.ThrowableArgumentException
-
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.ThrowableArgumentExceptionArgumentOutOfRangeException
-
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.ThrowableOverflowException
-
ToUInt32
public static UInt32 ToUInt32(Decimal d) throws java.lang.Throwable, OverflowException
- Throws:
java.lang.ThrowableOverflowException
-
ToUInt64
public static UInt64 ToUInt64(Decimal d) throws java.lang.Throwable, OverflowException
- Throws:
java.lang.ThrowableOverflowException
-
-