Package system.numerics
Class BigInteger
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.ValueType
-
- system.numerics.BigInteger
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class BigInteger extends ValueType
The base .NET class managing System.Numerics.BigInteger, System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Numerics.BigInteger
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: System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: System.Numericsstatic java.lang.StringclassNameQualified class name: System.Numerics.BigIntegerstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description BigInteger()BigInteger(byte[] value)BigInteger(double value)BigInteger(int value)BigInteger(long value)BigInteger(java.lang.Object instance)Internal constructor.BigInteger(Decimal value)BigInteger(Single value)BigInteger(UInt32 value)BigInteger(UInt64 value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BigIntegerAbs(BigInteger value)static BigIntegerAdd(BigInteger left, BigInteger right)static BigIntegercast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoBigInteger, a cast assert is made to check if types are compatible.static intCompare(BigInteger left, BigInteger right)intCompareTo(long other)intCompareTo(NetObject obj)intCompareTo(BigInteger other)intCompareTo(UInt64 other)static BigIntegerDivide(BigInteger dividend, BigInteger divisor)static BigIntegerDivRem(BigInteger dividend, BigInteger divisor, JCORefOut<BigInteger> remainder)booleanEquals(long other)booleanEquals(BigInteger other)booleanEquals(UInt64 other)booleangetIsEven()booleangetIsOne()booleangetIsPowerOfTwo()booleangetIsZero()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 Typestatic BigIntegergetMinusOne()static BigIntegergetOne()intgetSign()static BigIntegergetZero()static BigIntegerGreatestCommonDivisor(BigInteger left, BigInteger right)static doubleLog(BigInteger value)static doubleLog(BigInteger value, double baseValue)static doubleLog10(BigInteger value)static BigIntegerMax(BigInteger left, BigInteger right)static BigIntegerMin(BigInteger left, BigInteger right)static BigIntegerModPow(BigInteger value, BigInteger exponent, BigInteger modulus)static BigIntegerMultiply(BigInteger left, BigInteger right)static BigIntegerNegate(BigInteger value)static BigIntegerParse(java.lang.String value)static BigIntegerParse(java.lang.String value, NumberStyles style)static BigIntegerParse(java.lang.String value, NumberStyles style, IFormatProvider provider)static BigIntegerParse(java.lang.String value, IFormatProvider provider)static BigIntegerPow(BigInteger value, int exponent)static BigIntegerRemainder(BigInteger dividend, BigInteger divisor)voidsetJCOInstance(JCObject instance)static BigIntegerSubtract(BigInteger left, BigInteger right)byte[]ToByteArray()java.lang.StringToString(java.lang.String format)java.lang.StringToString(java.lang.String format, IFormatProvider provider)java.lang.StringToString(IFormatProvider provider)static booleanTryParse(java.lang.String value, JCORefOut<BigInteger> result)static booleanTryParse(java.lang.String value, NumberStyles style, IFormatProvider provider, JCORefOut<BigInteger> result)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Numerics- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Numerics.BigInteger- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BigInteger
public BigInteger(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
BigInteger
public BigInteger() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
BigInteger
public BigInteger(byte[] value) throws java.lang.Throwable, ArgumentNullException- Throws:
java.lang.ThrowableArgumentNullException
-
BigInteger
public BigInteger(double value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, OverflowException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionOverflowException
-
BigInteger
public BigInteger(int value) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
BigInteger
public BigInteger(long value) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
BigInteger
public BigInteger(Single value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, OverflowException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionOverflowException
-
BigInteger
public BigInteger(Decimal value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
BigInteger
public BigInteger(UInt32 value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
BigInteger
public BigInteger(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 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 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 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 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 interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classValueType- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static BigInteger cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoBigInteger, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
BigIntegerinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
Equals
public boolean Equals(long other) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
Equals
public boolean Equals(BigInteger other) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Equals
public boolean Equals(UInt64 other) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
TryParse
public static boolean TryParse(java.lang.String value, NumberStyles style, IFormatProvider provider, JCORefOut<BigInteger> result) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException- Throws:
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionTypeInitializationExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeException
-
TryParse
public static boolean TryParse(java.lang.String value, JCORefOut<BigInteger> result) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException, FormatException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException- Throws:
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionTypeInitializationExceptionFormatExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeException
-
ToByteArray
public byte[] ToByteArray() throws java.lang.Throwable, ArgumentNullException- Throws:
java.lang.ThrowableArgumentNullException
-
Log
public static double Log(BigInteger value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Log
public static double Log(BigInteger value, double baseValue) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Log10
public static double Log10(BigInteger value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Compare
public static int Compare(BigInteger left, BigInteger right) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
CompareTo
public int CompareTo(long other) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
CompareTo
public int CompareTo(BigInteger other) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
CompareTo
public int CompareTo(NetObject obj) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException
-
CompareTo
public int CompareTo(UInt64 other) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Abs
public static BigInteger Abs(BigInteger value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Add
public static BigInteger Add(BigInteger left, BigInteger right) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeException
-
Divide
public static BigInteger Divide(BigInteger dividend, BigInteger divisor) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeException
-
DivRem
public static BigInteger DivRem(BigInteger dividend, BigInteger divisor, JCORefOut<BigInteger> remainder) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeException
-
GreatestCommonDivisor
public static BigInteger GreatestCommonDivisor(BigInteger left, BigInteger right) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeException
-
Max
public static BigInteger Max(BigInteger left, BigInteger right) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Min
public static BigInteger Min(BigInteger left, BigInteger right) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ModPow
public static BigInteger ModPow(BigInteger value, BigInteger exponent, BigInteger modulus) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException
-
Multiply
public static BigInteger Multiply(BigInteger left, BigInteger right) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeException
-
Negate
public static BigInteger Negate(BigInteger value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Parse
public static BigInteger Parse(java.lang.String value) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException, FormatException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException
- Throws:
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionTypeInitializationExceptionFormatExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeException
-
Parse
public static BigInteger Parse(java.lang.String value, NumberStyles style) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException, FormatException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException
- Throws:
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionTypeInitializationExceptionFormatExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeException
-
Parse
public static BigInteger Parse(java.lang.String value, NumberStyles style, IFormatProvider provider) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, FormatException
- Throws:
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionTypeInitializationExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionFormatException
-
Parse
public static BigInteger Parse(java.lang.String value, IFormatProvider provider) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, FormatException
- Throws:
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionTypeInitializationExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionFormatException
-
Pow
public static BigInteger Pow(BigInteger value, int exponent) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException
-
Remainder
public static BigInteger Remainder(BigInteger dividend, BigInteger divisor) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeException
-
Subtract
public static BigInteger Subtract(BigInteger left, BigInteger right) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeException
-
ToString
public java.lang.String ToString(IFormatProvider provider) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException, OutOfMemoryException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, FormatException
- Throws:
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionTypeInitializationExceptionOutOfMemoryExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatException
-
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, OutOfMemoryException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException- Throws:
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionTypeInitializationExceptionFormatExceptionOutOfMemoryExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedException
-
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, OutOfMemoryException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, FormatException- Throws:
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionTypeInitializationExceptionOutOfMemoryExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatException
-
getIsEven
public boolean getIsEven() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getIsOne
public boolean getIsOne() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getIsPowerOfTwo
public boolean getIsPowerOfTwo() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getIsZero
public boolean getIsZero() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getSign
public int getSign() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getMinusOne
public static BigInteger getMinusOne() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getOne
public static BigInteger getOne() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getZero
public static BigInteger getZero() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-