org.apache.axis2.databinding.types
Class PositiveInteger
java.lang.Object
java.lang.Number
java.math.BigInteger
org.apache.axis2.databinding.types.NonNegativeInteger
org.apache.axis2.databinding.types.PositiveInteger
- All Implemented Interfaces:
- Serializable, Comparable<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,...}.
- See Also:
- XML Schema 3.3.25,
Serialized Form
Method Summary |
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, clearBit, 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 |
PositiveInteger
public PositiveInteger(byte[] val)
PositiveInteger
public PositiveInteger(int signum,
byte[] magnitude)
PositiveInteger
public PositiveInteger(int bitLength,
int certainty,
Random rnd)
PositiveInteger
public PositiveInteger(int numBits,
Random rnd)
PositiveInteger
public PositiveInteger(String val)
PositiveInteger
public PositiveInteger(String val,
int radix)
writeReplace
public Object writeReplace()
throws ObjectStreamException
- Work-around for http://developer.java.sun.com/developer/bugParade/bugs/4378370.html
- Overrides:
writeReplace
in class NonNegativeInteger
- Returns:
- BigIntegerRep
- Throws:
ObjectStreamException
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.