Examples of asInt()


Examples of org.rosuda.JRI.REXP.asInt()

          {// create new graph
            RViewer.setNewGraphName(title);
            eval("JavaGD(\"aa\")","JavaGD() failed");
            REXP devNum = eval("dev.cur()","failed to do dev.cur");
           
            RViewer.getGraph(title).init(devNum.asInt()-1);
          }
          eval("dev.set("+(RViewer.getGraph(title).getDeviceNumber()+1)+")","failed to do dev.set for "+title);
          for(String cmd:dataToPlot)
            eval(cmd,"failed to run plot "+cmd);
        }
View Full Code Here

Examples of ratpack.util.internal.TypeCoercingProperties.asInt()

        } catch (NumberFormatException e) {
          throw new LaunchException("Environment var '" + Environment.PORT + "' is not an integer", e);
        }
      }

      int port = props.asInt(PORT, defaultPort);
      InetAddress address = props.asInetAddress(ADDRESS);
      URI publicAddress = props.asURI(PUBLIC_ADDRESS);
      boolean development = props.asBoolean(DEVELOPMENT, false);
      int threads = props.asInt(THREADS, DEFAULT_THREADS);
      List<String> indexFiles = props.asList(INDEX_FILES);
View Full Code Here

Examples of siena.Json.asInt()

 
  public void testFind() {
    Json data = map().put("foo", list(1, 2, list(1, 2, map().put("bar", 1))));
    Json result = data.find("foo", 2, 2, "bar");
    assertNotNull(result);
    assertEquals(1, result.asInt());
   
    // try to call at() in a map
    result = data.find(1);
    assertNull(result);
   
View Full Code Here

Examples of siena.Json.asInt()

    assertTrue(json.isMap());
    assertEquals(2, json.size());
   
    Json foo = json.get("foo");
    assertTrue(foo.isNumber());
    assertEquals(1234, foo.asInt());
   
    Json bar = json.get("bar");
    assertTrue(bar.isBoolean());
    assertEquals(true, bar.asBoolean());
  }
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.