Examples of toArray()


Examples of com.carrotsearch.hppc.IntStack.toArray()

        IntStack ids = IntStack.newInstanceWithCapacity(selected.size());
        for (Cluster cluster : selected)
        {
            ids.push(cluster.getId());
        }
        browser.execute("javascript:selectGroupsById(" + Arrays.toString(ids.toArray()) + ");");

        return Status.OK_STATUS;
    }

    /**
 
View Full Code Here

Examples of com.carrotsearch.hppc.LongArrayList.toArray()

                remainingTypes.add(t.getID());

            }
        }
        //Sort types before writing to ensure that value is always written the same way
        long[] remaining = remainingTypes.toArray();
        Arrays.sort(remaining);
        for (long tid : remaining) {
            TitanType t = tx.getExistingType(tid);
            writeInline(writer, t, relation.getProperty(t), true);
        }
View Full Code Here

Examples of com.carrotsearch.hppc.ShortArrayList.toArray()

            .toArray(new char [normalizedWordImages.size()] []);
        context.allWords.tf = normalizedWordTf.toArray();
        context.allWords.tfByDocument =
            wordTfByDocumentList.toArray(new int [wordTfByDocumentList.size()] []);
        context.allWords.fieldIndices = fieldIndexList.toArray();
        context.allWords.type = types.toArray();
    }

    /**
     * Initializes the counters for the a token image.
     */
 
View Full Code Here

Examples of com.caucho.quercus.env.Value.toArray()

    Value value = _expr.eval(env).toValue();

    if (value instanceof ArrayValue)
      return value.copy();
    else
      return value.toArray();
  }

  public String toString()
  {
    return "((array) " + _expr + ")";
View Full Code Here

Examples of com.caucho.util.IntArray.toArray()

    if (separators.size() < formats.size())
      separators.add(separators.get(separators.size() - 1));

    this.separators = (String []) separators.toArray(new String[separators.size()]);
    this.zeroSize = zeroSizes.toArray();
    this.formats = formats.toArray();

    if (head == null)
      head = "";
    if (tail == null)
      tail = "";
View Full Code Here

Examples of com.clearnlp.collection.list.FloatArrayList.toArray()

   
    list.add(0);
    list.add(1);
    list.add(2);
 
    System.out.println(Arrays.toString(list.toArray()));
   
    ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream("tmp.txt"));
    out.writeObject(list);
    out.close();
   
View Full Code Here

Examples of com.db4o.foundation.Collection4.toArray()

    */
 
  public static Object[] collectionToArray(ObjectContainerBase stream, Object obj){
    Collection4 col = flattenCollection(stream, obj);
    Object[] ret = new Object[col.size()];
    col.toArray(ret);
    return ret;
  }

    static final Collection4 flattenCollection(ObjectContainerBase stream, Object obj) {
        Collection4 col = new Collection4();
View Full Code Here

Examples of com.dotmarketing.util.json.JSONArray.toArray()

                //Error messages
                JSONArray jsonErrors = new JSONArray( (ArrayList) responseMap.get( "errorMessages" ) );

                //Prepare the Json response
                JSONObject jsonResponse = new JSONObject();
                jsonResponse.put( "errorMessages", jsonErrors.toArray() );
                jsonResponse.put( "errors", responseMap.get( "errors" ) );
                jsonResponse.put( "total", responseMap.get( "total" ) );
                jsonResponse.put( "bundleId", responseMap.get( "bundleId" ) );

                //And send it back to the user
View Full Code Here

Examples of com.dubture.getcomposer.core.collection.ComposerPackages.toArray()

      if (pkg.getRequire().has(target) || pkg.getRequireDev().has(target)) {
        connections.add(target);
      }
    }

    return connections.toArray();
  }

  @Override
  public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
    if (newInput instanceof ComposerPackages) {
View Full Code Here

Examples of com.dubture.getcomposer.core.collection.JsonArray.toArray()

  public String convert(Object fromObject) {
    if (fromObject == null) {
      return "";
    }
    JsonArray keywords = (JsonArray)fromObject;
    return StringUtils.join((String[])keywords.toArray(new String[]{}), ", ");
  }

}
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.