public class NegativeInteger extends NonPositiveInteger
Modifier and Type | Class and Description |
---|---|
protected static class |
NegativeInteger.BigIntegerRep |
ONE, TEN, ZERO
Constructor and Description |
---|
NegativeInteger(byte[] val) |
NegativeInteger(int signum,
byte[] magnitude) |
NegativeInteger(int bitLength,
int certainty,
Random rnd) |
NegativeInteger(int numBits,
Random rnd) |
NegativeInteger(String val) |
NegativeInteger(String val,
int radix) |
Modifier and Type | Method and Description |
---|---|
Object |
writeReplace()
Work-around for http://developer.java.sun.com/developer/bugParade/bugs/4378370.html
|
abs, add, and, andNot, bitCount, bitLength, clearBit, compareTo, compareTo, divide, divideAndRemainder, doubleValue, equals, flipBit, floatValue, gcd, getLowestSetBit, hashCode, intValue, isProbablePrime, longValue, max, min, mod, modInverse, modPow, multiply, negate, nextProbablePrime, not, or, pow, probablePrime, remainder, setBit, shiftLeft, shiftRight, signum, subtract, testBit, toByteArray, toString, toString, valueOf, xor
byteValue, shortValue
public NegativeInteger(byte[] val)
public NegativeInteger(int signum, byte[] magnitude)
public NegativeInteger(int bitLength, int certainty, Random rnd)
public NegativeInteger(int numBits, Random rnd)
public NegativeInteger(String val)
public NegativeInteger(String val, int radix)
public Object writeReplace() throws ObjectStreamException
writeReplace
in class NonPositiveInteger
ObjectStreamException
Copyright © The Apache Software Foundation. All Rights Reserved.