Examples of toArray()


Examples of com.humaorie.dollar.ArrayWrapper.LongArrayWrapper.toArray()

    @Test
    public void boxLongArray() {
        long[] unboxed = new long[]{42L, 42L, 42L};
        LongArrayWrapper arrayWrapper = new LongArrayWrapper(unboxed);
        Assert.assertArrayEquals(new Long[]{42L, 42L, 42L}, arrayWrapper.toArray());
    }

    @Test
    public void boxFloatArray() {
        float[] unboxed = new float[]{42.0f, 42.0f, 42.0f};
View Full Code Here

Examples of com.humaorie.dollar.ArrayWrapper.ShortArrayWrapper.toArray()

    @Test
    public void boxShortArray() {
        short[] unboxed = new short[]{42, 42, 42};
        ShortArrayWrapper arrayWrapper = new ShortArrayWrapper(unboxed);
        Assert.assertArrayEquals(new Short[]{42, 42, 42}, arrayWrapper.toArray());
    }

    @Test
    public void boxIntArray() {
        int[] unboxed = new int[]{42, 42, 42};
View Full Code Here

Examples of com.ipc.oce.objects.OCUserArray.toArray()

 
  @Test
  public void listUsers() throws JIException {
    OCInfoBaseUsersManager manager = app.getInfoBaseUserManager();
    OCUserArray array = manager.getUsers();
    OCInfoBaseUser[] userArray = array.toArray();
    for (OCInfoBaseUser user : userArray) {
      System.out.println(user.getName());
    }
  }
 
View Full Code Here

Examples of com.jgraph.layout.hierarchical.model.JGraphHierarchyRank.toArray()

    Map map = new Hashtable();
    Object[][] rank = new Object[model.maxRank + 1][];
    for (int i = 0; i <= model.maxRank; i++) {
      JGraphHierarchyRank rankSet = (JGraphHierarchyRank) model.ranks
          .get(new Integer(i));
      rank[i] = rankSet.toArray();
      for (int j = 0; j < rank[i].length; j++) {
        // Use the weight to store the rank and visited to store whether
        // or not the cell is in the list
        JGraphAbstractHierarchyCell cell = (JGraphAbstractHierarchyCell) rank[i][j];
        WeightedCellSorter cellWrapper = new WeightedCellSorter(cell, i);
View Full Code Here

Examples of com.jme3.math.Vector3f.toArray()

  static long hour =0;
  @Override
  public void update(float tpf) {
    if (spatial != null && enabled) {
      Vector3f camLoc = cam.getLocation();
      float[] camLF = camLoc.toArray(null);
      spatial.setLocalTranslation(camLF[0], camLF[1]+.25f, camLF[2]);
     
//      if (getUseCalendar()) {
        checkDayNight();
       
View Full Code Here

Examples of com.lgx8.common.KeyStore.toArray()

     * @throws
     */
    public String[] getKeyStoreArray(HttpServletRequest request) {
        KeyStore keyStore = this.getKeyStore(request);
        String[] orgIds = new String[keyStore.size()];
        keyStore.toArray(orgIds);
        return orgIds;
    }
   
    /**
     * @return ams.action.KeyStore
View Full Code Here

Examples of com.mobixess.jodb.core.query.LArrayChunkedBuffer.toArray()

            if(arrayChunkedBuffer.next()!=i){
                throw new RuntimeException();
            }
        }
       
        long[] bufferAsArray = arrayChunkedBuffer.toArray();
       
        for (int i = 0; i < bufferAsArray.length; i++) {
            if(bufferAsArray[i]!=max-i-1){
                throw new RuntimeException();
            }
View Full Code Here

Examples of com.mongodb.BasicDBList.toArray()

            f.addToMetadata(m.fieldName, array);
          } else { // complex object or array - in either case the engine turns these into
                // internal.NativeArray or internal.NativeObject
           
            BasicDBList outList = JavaScriptUtils.parseNativeJsObject(returnVal, engine);                       
            f.addToMetadata(m.fieldName, outList.toArray());
          }
        }
      } catch (ScriptException e) {

        _context.getHarvestStatus().logMessage(HarvestExceptionUtils.createExceptionMessage(e).toString(), true);
View Full Code Here

Examples of com.mongodb.DBCursor.toArray()

            if (limit != null) {
                ret.limit(limit.intValue());
            }

            Message resultMessage = prepareResponseMessage(exchange, MongoDbOperation.findAll);
            resultMessage.setBody(ret.toArray());
            resultMessage.setHeader(MongoDbConstants.RESULT_TOTAL_SIZE, ret.count());
            resultMessage.setHeader(MongoDbConstants.RESULT_PAGE_SIZE, ret.size());
        } finally {
            // make sure the cursor is closed
            if (ret != null) {
View Full Code Here

Examples of com.mxgraph.layout.hierarchical.model.mxGraphHierarchyRank.toArray()

    mxGraphAbstractHierarchyCell[][] rank = new mxGraphAbstractHierarchyCell[model.maxRank + 1][];

    for (int i = 0; i <= model.maxRank; i++)
    {
      mxGraphHierarchyRank rankSet = model.ranks.get(new Integer(i));
      rank[i] = rankSet.toArray(new mxGraphAbstractHierarchyCell[rankSet
          .size()]);

      for (int j = 0; j < rank[i].length; j++)
      {
        // Use the weight to store the rank and visited to store whether
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.