Class NonPositiveInteger

  • All Implemented Interfaces:
    Serializable, Comparable<BigInteger>
    Direct Known Subclasses:
    NegativeInteger

    public class NonPositiveInteger
    extends BigInteger
    Custom class for supporting primitive XSD data type nonPositiveInteger

    nonPositiveInteger is derived from integer by setting the value of maxInclusive to be 0. This results in the standard mathematical concept of the non-positive integers. The value space of nonPositiveInteger is the infinite set {...,-2,-1,0}.

    See Also:
    XML Schema 3.3.14, Serialized Form
    • Constructor Detail

      • NonPositiveInteger

        public NonPositiveInteger​(byte[] val)
      • NonPositiveInteger

        public NonPositiveInteger​(int signum,
                                  byte[] magnitude)
      • NonPositiveInteger

        public NonPositiveInteger​(int bitLength,
                                  int certainty,
                                  Random rnd)
      • NonPositiveInteger

        public NonPositiveInteger​(int numBits,
                                  Random rnd)
      • NonPositiveInteger

        public NonPositiveInteger​(String val)
      • NonPositiveInteger

        public NonPositiveInteger​(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
        Returns:
        BigIntegerRep
        Throws:
        ObjectStreamException