Examples of longValue()


Examples of org.robovm.apple.foundation.NSNumber.longValue()

  @Override
  public long getLong (String key) {
    NSNumber value = (NSNumber)nsDictionary.get(convertKey(key));
    if (value == null) return 0L;
    return value.longValue();
  }

  @Override
  public float getFloat (String key) {
    NSNumber value = (NSNumber)nsDictionary.get(convertKey(key));
View Full Code Here

Examples of org.robovm.cocoatouch.foundation.NSNumber.longValue()

  @Override
  public long getLong (String key) {
    NSNumber value = (NSNumber)nsDictionary.get(convertKey(key));
    if (value == null) return 0L;
    return value.longValue();
  }

  @Override
  public float getFloat (String key) {
    NSNumber value = (NSNumber)nsDictionary.get(convertKey(key));
View Full Code Here

Examples of org.rococoa.ID.longValue()

   
    @Test public void convertsReturnedIDToString() {
        ID helloID = Foundation.cfString("Hello"); // just leaks
       
        // We can cope with 64 bits on 64 and 32
        Number nativeValue = new Long(helloID.longValue());
        String converted = converter.fromNative(nativeValue, null);
        assertEquals("Hello", converted);

        // We must cope with 32 bits on 32-bit
        if (NativeLong.SIZE == 4) {
View Full Code Here

Examples of org.rococoa.cocoa.foundation.NSNumber.longValue()

    }
  
    @Test public void testReturnTypes() {
        NSNumber e = NSNumber.CLASS.numberWithDouble(Math.E);
        assertEquals(2, e.intValue());
        assertEquals(2, e.longValue());
        assertEquals((float) Math.E, e.floatValue(), 0.001);
        assertEquals(Math.E, e.doubleValue(), 0.001);
    }
   
    @Test public void testPassOCObject() {
View Full Code Here

Examples of org.tmatesoft.svn.core.internal.util.jna.ISVNWin32Library.HRESULT.longValue()

            return null;
        }
        final char[] commonAppDataPath = new char[1024];
        int type = common ? ISVNWin32Library.CSIDL_COMMON_APPDATA : ISVNWin32Library.CSIDL_APPDATA;
        HRESULT result = library.SHGetFolderPathW(Pointer.NULL, type, Pointer.NULL, ISVNWin32Library.SHGFP_TYPE_CURRENT, commonAppDataPath);
        if (result == null || result.longValue() != 0) {
            return null;
        }
        int length = commonAppDataPath.length;
        for (int i = 0; i < commonAppDataPath.length; i++) {
            if (commonAppDataPath[i] == '\0') {
View Full Code Here

Examples of org.voltdb.client.exampleutils.AppHelper.longValue()

                .add("run-loader", "Run the leveldb loader", "true")
                .setArguments(args)
            ;

            // Retrieve parameters
            final long displayInterval = apph.longValue("displayinterval");
            final long duration        = apph.longValue("duration");
            final String servers       = apph.stringValue("servers");
            final int port             = apph.intValue("port");
            final int poolSize         = apph.intValue("pool-size");
            final String procedure     = apph.stringValue("procedure");
View Full Code Here

Examples of ptolemy.data.LongToken.longValue()

                ((BooleanToken) _checkpoint.get(0)).booleanValue();
        }

        if (_rollback.getWidth() > 0 && _rollback.hasToken(0)) {
            LongToken rollbackHandle = (LongToken) _rollback.get(0);
            _rollbackHandle = rollbackHandle.longValue();
        } else {
            _rollbackHandle = -1;
        }

        if (checkpointTrigger) {
View Full Code Here

Examples of se.llbit.nbt.AnyTag.longValue()

      AnyTag spawnZ = result.get(".Data.Player.SpawnZ");
      AnyTag gameType = result.get(".Data.GameType");
      AnyTag randomSeed = result.get(".Data.RandomSeed");

      gameMode  = gameType.intValue(0);
      seed = randomSeed.longValue(0);

      playerX = posX.doubleValue();
      playerY = posY.doubleValue();
      playerZ = posZ.doubleValue();
      playerYaw = yaw.floatValue();
View Full Code Here

Examples of tcg.scada.cos.CosDpValueUnion.longValue()

    intStatus = datapoint.setDataPointRollOver(1500);
    Assert.assertEquals(1500, intStatus);
    Assert.assertEquals(1500, datapoint.getDataPointRollOver());

    // set initial state
    value.longValue(53);
    datapoint.setInitialValue(value, value);
    datapoint.setLastMeterReading(200);

    // initial value
    Assert.assertEquals(false, datapoint.isOverride());
View Full Code Here

Examples of wyautl.util.BigRational.longValue()

    } else if (v instanceof BigRational) {
      BigRational br = (BigRational) v;
      rhs = "new Automaton.Real(\"" + br.toString() + "\")";
      if (br.isInteger()) {
        long lv = br.longValue();
        if (BigRational.valueOf(lv).equals(br)) {
          // Yes, this will fit in a long value. Therefore, inline a
          // long constant as this is faster.
          rhs = "new Automaton.Real(" + lv + ")";
        }
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.