org.apache.axis2.databinding.types
Class NegativeInteger

java.lang.Object
  extended by java.lang.Number
      extended by java.math.BigInteger
          extended by org.apache.axis2.databinding.types.NonPositiveInteger
              extended by org.apache.axis2.databinding.types.NegativeInteger
All Implemented Interfaces:
Serializable, Comparable<BigInteger>

public class NegativeInteger
extends NonPositiveInteger

Custom class for supporting primitive XSD data type negativeinteger

negativeInteger is derived from nonPositiveInteger by setting the value of maxInclusive to be -1. This results in the standard mathematical concept of the negative integers. The value space of negativeInteger is the infinite set {...,-2,-1}. The base type of negativeInteger is nonPositiveInteger.

See Also:
XML Schema 3.3.15, Serialized Form

Nested Class Summary
protected static class NegativeInteger.BigIntegerRep
          Deprecated. As per https://issues.apache.org/jira/browse/AXIS2-3848
 
Field Summary
 
Fields inherited from class java.math.BigInteger
ONE, TEN, ZERO
 
Constructor Summary
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)
           
 
Method Summary
 Object writeReplace()
          Deprecated. As per https://issues.apache.org/jira/browse/AXIS2-3848
 
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
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NegativeInteger

public NegativeInteger(byte[] val)

NegativeInteger

public NegativeInteger(int signum,
                       byte[] magnitude)

NegativeInteger

public NegativeInteger(int bitLength,
                       int certainty,
                       Random rnd)

NegativeInteger

public NegativeInteger(int numBits,
                       Random rnd)

NegativeInteger

public NegativeInteger(String val)

NegativeInteger

public NegativeInteger(String val,
                       int radix)
Method Detail

writeReplace

public Object writeReplace()
                    throws ObjectStreamException
Deprecated. As per https://issues.apache.org/jira/browse/AXIS2-3848

Work-around for http://developer.java.sun.com/developer/bugParade/bugs/4378370.html

Overrides:
writeReplace in class NonPositiveInteger
Returns:
BigIntegerRep
Throws:
ObjectStreamException


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.