Examples of intValue()


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

  @Override
  public int getInteger (String key) {
    NSNumber value = (NSNumber)nsDictionary.get(convertKey(key));
    if (value == null) return 0;
    return value.intValue();
  }

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

Examples of org.rococoa.ID.intValue()

        String converted = converter.fromNative(nativeValue, null);
        assertEquals("Hello", converted);

        // We must cope with 32 bits on 32-bit
        if (NativeLong.SIZE == 4) {
            nativeValue = new Integer(helloID.intValue());
            converted = converter.fromNative(nativeValue, null);
            assertEquals("Hello", converted);       
        }   
    }
   
View Full Code Here

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

        // We can cope with 64 bits on 64 and 32
        Number nativeValue = new Long(number.id().longValue());
        NSNumber converted = (NSNumber) converter.fromNative(nativeValue, null);
        assertEquals(converted.id(), number.id());
        assertEquals(45, converted.intValue());       

        // We must cope with 32 bits on 32-bit
        if (NativeLong.SIZE == 4) {
            nativeValue = new Integer(number.id().intValue());
            converted = (NSNumber) converter.fromNative(nativeValue, null);
View Full Code Here

Examples of org.tmatesoft.sqljet.core.internal.ISqlJetVdbeMem.intValue()

     */
    public long getIntField(int field) {
        final ISqlJetVdbeMem f = fields.get(field);
        if (null == f)
            return 0;
        return f.intValue();
    }

    /*
     * (non-Javadoc)
     *
 
View Full Code Here

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

                .setArguments(args)
            ;

            // Retrieve parameters
            String vservers = apph.stringValue("vservers");
            int mport       = apph.intValue("mport");

            // Display actual parameters, for reference
            apph.printActualUsage();

// ---------------------------------------------------------------------------------------------------------------------------------------------------
View Full Code Here

Examples of polyglot.ext.jl.parse.Name.intValue()

              Integer RESULT = null;
    int aleft = ((java_cup.runtime.Symbol)CUP$Grm$stack.elementAt(CUP$Grm$top-2)).left;
    int aright = ((java_cup.runtime.Symbol)CUP$Grm$stack.elementAt(CUP$Grm$top-2)).right;
    Integer a = (Integer)((java_cup.runtime.Symbol) CUP$Grm$stack.elementAt(CUP$Grm$top-2)).value;
   
                         RESULT = new Integer(a.intValue() + 1);
                        
              CUP$Grm$result = new java_cup.runtime.Symbol(124/*dims*/, ((java_cup.runtime.Symbol)CUP$Grm$stack.elementAt(CUP$Grm$top-2)).left, ((java_cup.runtime.Symbol)CUP$Grm$stack.elementAt(CUP$Grm$top-0)).right, RESULT);
            }
          return CUP$Grm$result;

View Full Code Here

Examples of ptolemy.data.BooleanToken.intValue()

        env.bind("INT19_mul", _theContext.createFunction(new Function() {
            public Object apply(Object[] args) {
                try {
                    IntToken a = (IntToken) args[0];
                    IntToken b = (IntToken) args[1];
                    int res = (a.intValue() * b.intValue()); // & 0x7ffff;
                    return _theContext.createInteger(res);
                } catch (Exception ex) {
                    throw new InterpreterException(
                            "Function 'RGBCLIP': Cannot apply.", ex);
                }
View Full Code Here

Examples of ptolemy.data.IntToken.intValue()

                _throwable = null;
            }
        } else if (attribute == maxOutputLength) {
            IntToken length = (IntToken) maxOutputLength.getToken();

            if (length.intValue() > 0) {
                _outputLength = length.intValue();
            } else {
                throw new IllegalActionException(this,
                        "output array length is less than or equal 0?!");
            }
View Full Code Here

Examples of ptolemy.data.ScalarToken.intValue()

            Variable weightAttribute = (Variable) temporaryAttribute;
            Token weightToken = weightAttribute.getToken();

            if (weightToken instanceof ScalarToken) {
                ScalarToken weightScalarToken = (ScalarToken) weightToken;
                return weightScalarToken.intValue();
            }
            return 0;
        } else {
            _debug(" something wrong with the edge");
            return 0;
View Full Code Here

Examples of ptolemy.data.Token.intValue()

        env.bind("INT19_mul", _theContext.createFunction(new Function() {
            public Object apply(Object[] args) {
                try {
                    IntToken a = (IntToken) args[0];
                    IntToken b = (IntToken) args[1];
                    int res = (a.intValue() * b.intValue()); // & 0x7ffff;
                    return _theContext.createInteger(res);
                } catch (Exception ex) {
                    throw new InterpreterException(
                            "Function 'RGBCLIP': Cannot apply.", ex);
                }
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.