Package org.apache.axis.types
Class PositiveInteger
- java.lang.Object
-
- java.lang.Number
-
- java.math.BigInteger
-
- org.apache.axis.types.NonNegativeInteger
-
- org.apache.axis.types.PositiveInteger
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<java.math.BigInteger>
public class PositiveInteger extends NonNegativeInteger
Custom class for supporting primitive XSD data type positiveInteger positiveInteger is derived from nonNegativeInteger by setting the value of minInclusive to be 1. This results in the standard mathematical concept of the positive integer numbers. The value space of positiveInteger is the infinite set {1,2,...}.- Author:
- Chris Haddad
- See Also:
- XML Schema 3.3.25, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
PositiveInteger.BigIntegerRep
-
Constructor Summary
Constructors Constructor Description PositiveInteger(byte[] val)
PositiveInteger(int signum, byte[] magnitude)
PositiveInteger(int bitLength, int certainty, java.util.Random rnd)
PositiveInteger(int numBits, java.util.Random rnd)
PositiveInteger(java.lang.String val)
PositiveInteger(java.lang.String val, int radix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
writeReplace()
Work-around for http://developer.java.sun.com/developer/bugParade/bugs/4378370.html-
Methods inherited from class java.math.BigInteger
abs, add, and, andNot, bitCount, bitLength, byteValueExact, clearBit, compareTo, divide, divideAndRemainder, doubleValue, equals, flipBit, floatValue, gcd, getLowestSetBit, hashCode, intValue, intValueExact, isProbablePrime, longValue, longValueExact, max, min, mod, modInverse, modPow, multiply, negate, nextProbablePrime, not, or, pow, probablePrime, remainder, setBit, shiftLeft, shiftRight, shortValueExact, signum, sqrt, sqrtAndRemainder, subtract, testBit, toByteArray, toString, toString, valueOf, xor
-
-
-
-
Constructor Detail
-
PositiveInteger
public PositiveInteger(byte[] val)
-
PositiveInteger
public PositiveInteger(int signum, byte[] magnitude)
-
PositiveInteger
public PositiveInteger(int bitLength, int certainty, java.util.Random rnd)
-
PositiveInteger
public PositiveInteger(int numBits, java.util.Random rnd)
-
PositiveInteger
public PositiveInteger(java.lang.String val)
-
PositiveInteger
public PositiveInteger(java.lang.String val, int radix)
-
-
Method Detail
-
writeReplace
public java.lang.Object writeReplace() throws java.io.ObjectStreamException
Work-around for http://developer.java.sun.com/developer/bugParade/bugs/4378370.html- Overrides:
writeReplace
in classNonNegativeInteger
- Returns:
- BigIntegerRep
- Throws:
java.io.ObjectStreamException
-
-