Examples of asInteger()


Examples of com.google.enterprise.connector.dctm.dfcwrap.IValue.asInteger()

          case IAttr.DM_ID:
            // TODO: Should we check for null here?
            values.add(Value.getStringValue(val.asId().getId()));
            break;
          case IAttr.DM_INTEGER:
            values.add(Value.getLongValue(val.asInteger()));
            break;
          case IAttr.DM_STRING:
            values.add(Value.getStringValue(val.asString()));
            break;
          case IAttr.DM_TIME:
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSD.asInteger()

    @Test
    public void DeserializeInteger() throws IOException, OSDException
    {
        OSD llsdZeroInteger = BinaryLLSDOSDParser.DeserializeLLSDBinary(binaryZeroInt);
        Assert.assertEquals(OSDType.Integer, llsdZeroInteger.getType());
        Assert.assertEquals(0, llsdZeroInteger.asInteger());


        OSD llsdAnInteger = BinaryLLSDOSDParser.DeserializeLLSDBinary(binaryAnInt);
        Assert.assertEquals(OSDType.Integer, llsdAnInteger.getType());
        Assert.assertEquals(1234843, llsdAnInteger.asInteger());
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSD.asInteger()

        Assert.assertEquals(0, llsdZeroInteger.asInteger());


        OSD llsdAnInteger = BinaryLLSDOSDParser.DeserializeLLSDBinary(binaryAnInt);
        Assert.assertEquals(OSDType.Integer, llsdAnInteger.getType());
        Assert.assertEquals(1234843, llsdAnInteger.asInteger());
    }

    @Test
    public void SerializeInteger() throws Exception
    {
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSD.asInteger()

          public void DeserializeInteger() throws OSDException, IOException
          {
              String integerOne = "i12319423";
              OSD llsdOne = NotationalLLSDOSDParser.DeserializeLLSDNotation(integerOne);
              Assert.assertEquals(OSDType.Integer, llsdOne.getType());
              Assert.assertEquals(12319423, llsdOne.asInteger());

              String integerTwo = "i-489234";
              OSD llsdTwo = NotationalLLSDOSDParser.DeserializeLLSDNotation(integerTwo);
              Assert.assertEquals(OSDType.Integer, llsdTwo.getType());
              Assert.assertEquals(-489234, llsdTwo.asInteger());
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSD.asInteger()

              Assert.assertEquals(12319423, llsdOne.asInteger());

              String integerTwo = "i-489234";
              OSD llsdTwo = NotationalLLSDOSDParser.DeserializeLLSDNotation(integerTwo);
              Assert.assertEquals(OSDType.Integer, llsdTwo.getType());
              Assert.assertEquals(-489234, llsdTwo.asInteger());
          }

          @Test
          public void SerializeInteger() throws IOException, OSDException
          {
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSD.asInteger()

              OSD llsdTwo = OSD.FromInteger(-71892034);
              String sTwo = NotationalLLSDOSDParser.SerializeLLSDNotation(llsdTwo);
              OSD llsdTwoDS = NotationalLLSDOSDParser.DeserializeLLSDNotation(sTwo);
              Assert.assertEquals(OSDType.Integer, llsdTwoDS.getType());
              Assert.assertEquals(-71892034, llsdTwoDS.asInteger());
          }

          @Test
          public void DeserializeReal() throws OSDException, IOException
          {
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSDInteger.asInteger()

    Assert.assertTrue(theSD instanceof OSDArray);
    array = (OSDArray)theSD;

    Assert.assertEquals(OSDType.Integer, array.get(0).getType());
    tempInt = (OSDInteger)array.get(0);
    Assert.assertEquals(2147483647, tempInt.asInteger());

    Assert.assertEquals(OSDType.Integer, array.get(1).getType());
    tempInt = (OSDInteger)array.get(1);
    Assert.assertEquals(-2147483648, tempInt.asInteger());
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSDInteger.asInteger()

    tempInt = (OSDInteger)array.get(0);
    Assert.assertEquals(2147483647, tempInt.asInteger());

    Assert.assertEquals(OSDType.Integer, array.get(1).getType());
    tempInt = (OSDInteger)array.get(1);
    Assert.assertEquals(-2147483648, tempInt.asInteger());

    Assert.assertEquals(OSDType.Integer, array.get(2).getType());
    tempInt = (OSDInteger)array.get(2);
    Assert.assertEquals(0, tempInt.asInteger());
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSDInteger.asInteger()

    tempInt = (OSDInteger)array.get(1);
    Assert.assertEquals(-2147483648, tempInt.asInteger());

    Assert.assertEquals(OSDType.Integer, array.get(2).getType());
    tempInt = (OSDInteger)array.get(2);
    Assert.assertEquals(0, tempInt.asInteger());

    Assert.assertEquals(OSDType.Integer, array.get(3).getType());
    tempInt = (OSDInteger)array.get(3);
    Assert.assertEquals(13, tempInt.asInteger());
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSDInteger.asInteger()

    tempInt = (OSDInteger)array.get(2);
    Assert.assertEquals(0, tempInt.asInteger());

    Assert.assertEquals(OSDType.Integer, array.get(3).getType());
    tempInt = (OSDInteger)array.get(3);
    Assert.assertEquals(13, tempInt.asInteger());

    Assert.assertEquals(OSDType.Integer, array.get(4).getType());
    tempInt = (OSDInteger)array.get(4);
    Assert.assertEquals(0, tempInt.asInteger());
  }
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.