Examples of toArray()


Examples of org.rhq.core.pc.drift.ScheduleQueue.toArray()

    public List<DriftDefinition> getDeletedDefinitions(int resourceId, Set<DriftDefinition> definitionsFromServer) {
        log.debug("Checking for drift definitions that need to be deleted for resource id " + resourceId);
        List<DriftDefinition> deleted = new LinkedList<DriftDefinition>();
        ScheduleQueue queue = driftMgr.getSchedulesQueue();

        for (DriftDetectionSchedule schedule : getSchedulesForResource(resourceId, queue.toArray())) {
            if (!definitionsFromServer.contains(schedule.getDriftDefinition())) {
                if (log.isDebugEnabled()) {
                    log.debug("Detected stale drift definition that needs to be purged - "
                        + toString(resourceId, schedule.getDriftDefinition()));
                }
View Full Code Here

Examples of org.rosuda.REngine.RList.toArray()

      if(rexp.isRaw()) {
        return rexp.asBytes();
      }
      if(rexp.isList()) {
        RList rList = rexp.asList();
        Object[] listOfREXP = rList.toArray();
        //convert object in List as Java Objects
        // eg: REXPDouble as Double or Doubles
        for(int i = 0; i < listOfREXP.length; i++){
          REXP obj = (REXP)listOfREXP[i];
          Object javaObj =  rexp2javaObj(obj);
View Full Code Here

Examples of org.structr.common.geo.GeoCodingResult.toArray()

        if (coords != null) {

          Map<String, Object> params = new HashMap<>();

          params.put(LayerNodeIndex.POINT_PARAMETER, coords.toArray());
          params.put(LayerNodeIndex.DISTANCE_IN_KM_PARAMETER, dist);

          LayerNodeIndex spatialIndex = this.getSpatialIndex();
          if (spatialIndex != null) {
View Full Code Here

Examples of org.tmatesoft.hg.internal.ByteArrayChannel.toArray()

  private void testReadWorkingCopy() throws Exception {
    for (String fname : cmdLineOpts.getList("")) {
      HgDataFile fn = hgRepo.getFileNode(fname);
      ByteArrayChannel sink = new ByteArrayChannel();
      fn.workingCopy(sink);
      System.out.printf("%s: read %d bytes of working copy", fname, sink.toArray().length);
    }
  }
 
  private void testParents() throws Exception {
    // hg parents cmd
View Full Code Here

Examples of org.tmatesoft.hg.internal.IntVector.toArray()

          undefinedChangelogRevision.add(i);
        }
      }
      if (undefinedChangelogRevision.size() > 0) {
        final IntMap<Nodeid> missingCsetToManifest = new IntMap<Nodeid>(undefinedChangelogRevision.size());
        int[] undefinedClogRevs = undefinedChangelogRevision.toArray();
        // undefinedChangelogRevision is sorted by the nature it's created
        HgManifest.this.getRepo().getChangelog().rangeInternal(new HgChangelog.Inspector() {
         
          public void next(int revisionIndex, Nodeid nodeid, RawChangeset cset) {
            missingCsetToManifest.put(revisionIndex, cset.manifest());
View Full Code Here

Examples of org.tmatesoft.svn.core.internal.util.SVNHashSet.toArray()

            Collection relativePaths = new SVNHashSet();
            String path = SVNPathUtil.condencePaths(fullPaths, relativePaths, false);
            if (relativePaths.isEmpty()) {
                relativePaths.add("");
            }
            fullPaths = (String[]) relativePaths.toArray(new String[relativePaths.size()]);
           
            StringBuffer request = DAVLogHandler.generateLogRequest(null, startRevision, endRevision, changedPath,
                    strictNode, includeMergedRevisions, revPropNames, limit, fullPaths);
            davHandler = new DAVLogHandler(cachingHandler, limit, revPropNames);
            if (davHandler.isWantCustomRevprops()) {
View Full Code Here

Examples of org.vertx.java.core.json.JsonArray.toArray()

             * served from disk.
             */
              @Override
            public void handle(Message<JsonObject> event) {
              JsonArray resourceIdArr = event.body.getArray("resourceIds");
              Object[] resourceIds = resourceIdArr.toArray();
              String resourceId = (String) resourceIds[0];

              String currentPath = stripLeadingSlash(request.getPath());
              FileEditSession editSession = editSessions.get(resourceId);

View Full Code Here

Examples of org.voltdb.ParameterSet.toArray()

        buf.rewind();

        ParameterSet out = new ParameterSet();
        out.readExternal(new FastDeserializer(buf));

        assertEquals(3, out.toArray().length);
        assertNull(out.toArray()[0]);
    }

    public void testStrings() throws IOException {
        params.setParameters(new Object[]{"foo"});
View Full Code Here

Examples of org.zkoss.json.JSONArray.toArray()

   
    if (selectAll) {
      range.autoFilter(field, null, AutoFilter.FILTEROP_VALUES, null, null);
    } else { //partial selection
      JSONArray ary = (JSONArray) data.get("criteria");
      range.autoFilter(field, ary.toArray(new String[ary.size()]), AutoFilter.FILTEROP_VALUES, null, null);
    }
  }
}
View Full Code Here

Examples of org.zkoss.util.FastReadArray.toArray()

      FastReadArray ary;
      synchronized (filters) {
        ary = (FastReadArray)filters.get(ext);
      }
      if (ary != null)
        return (Filter[])ary.toArray();

      int j = ext.indexOf('.');
      if (j < 0)   return null;
      ext = ext.substring(j + 1);
    }
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.