Examples of UnsignedInteger


Examples of co.nstant.in.cbor.model.UnsignedInteger

        super(decoder, inputStream);
    }

    @Override
    public UnsignedInteger decode(int initialByte) throws CborException {
        return new UnsignedInteger(getLengthAsBigInteger(initialByte));
    }
View Full Code Here

Examples of co.nstant.in.cbor.model.UnsignedInteger

  protected void addChunk(DataItem dataItem) {
  }

  protected DataItem convert(long value) {
    if (value >= 0) {
      return new UnsignedInteger(value);
    } else {
      return new NegativeInteger(value);
    }
  }
View Full Code Here

Examples of co.nstant.in.cbor.model.UnsignedInteger

  protected DataItem convert(BigInteger value) {
    if (value.signum() == -1) {
      return new NegativeInteger(value);
    } else {
      return new UnsignedInteger(value);
    }
  }
View Full Code Here

Examples of jcgp.backend.function.UnsignedInteger

  public TestCase<UnsignedInteger> parseTestCase(String[] inputs, String[] outputs) {
    // cast the test case values to UnsignedInteger
    UnsignedInteger[] inputCases = new UnsignedInteger[inputs.length];
    UnsignedInteger[] outputCases = new UnsignedInteger[outputs.length];
    for (int i = 0; i < inputCases.length; i++) {
      inputCases[i] = new UnsignedInteger(inputs[i]);
    }
    for (int o = 0; o < outputCases.length; o++) {
      outputCases[o] = new UnsignedInteger(outputs[o]);
    }

    return new TestCase<UnsignedInteger>(inputCases, outputCases);
  }
View Full Code Here

Examples of org.apache.qpid.amqp_1_0.type.UnsignedInteger

        }
    }

    public boolean getJMSRedelivered()
    {
        UnsignedInteger failures = getDeliveryFailures();
        return failures != null && (failures.intValue() != 0);
    }
View Full Code Here

Examples of org.apache.qpid.amqp_1_0.type.UnsignedInteger

        return failures != null && (failures.intValue() != 0);
    }

    public void setJMSRedelivered(boolean redelivered)
    {
        UnsignedInteger failures = getDeliveryFailures();
        if(redelivered)
        {
            if(failures == null || UnsignedInteger.ZERO.equals(failures))
            {
                setDeliveryFailures(UnsignedInteger.ONE);
View Full Code Here

Examples of org.apache.qpid.amqp_1_0.type.UnsignedInteger

        messageAnnotationMap().put(JMS_TYPE, s);
    }

    public long getJMSExpiration() throws JMSException
    {
        final UnsignedInteger ttl = getTtl();
        return ttl == null || ttl.longValue() == 0 ? 0 : getJMSTimestamp() + ttl.longValue();
    }
View Full Code Here

Examples of org.apache.qpid.amqp_1_0.type.UnsignedInteger

        }
    }

    public boolean getJMSRedelivered()
    {
        UnsignedInteger failures = getDeliveryFailures();
        return failures != null && (failures.intValue() != 0);
    }
View Full Code Here

Examples of org.apache.qpid.amqp_1_0.type.UnsignedInteger

        return failures != null && (failures.intValue() != 0);
    }

    public void setJMSRedelivered(boolean redelivered)
    {
        UnsignedInteger failures = getDeliveryFailures();
        if(redelivered)
        {
            if(failures == null || UnsignedInteger.ZERO.equals(failures))
            {
                setDeliveryFailures(UnsignedInteger.ONE);
View Full Code Here

Examples of org.apache.qpid.amqp_1_0.type.UnsignedInteger

        messageAttrs.put(JMS_TYPE, s);
    }

    public long getJMSExpiration() throws JMSException
    {
        final UnsignedInteger ttl = getTtl();
        return ttl == null || ttl.longValue() == 0 ? 0 : getJMSTimestamp() + ttl.longValue();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.