Examples of toArray()


Examples of lombok.val.toArray()

        parts.get(parts.size() - 1).add(item);
      else
        parts.add(new ArrayList<T>(DEFAULT_LIST_SIZE));
    }

    return where(parts.toArray(), isNotEmpty);
  }

  /**
   * Splits a sequence into parts delimited by the specified delimited. Empty entries between delimiters are removed.
   *
 
View Full Code Here

Examples of mbj.robotdriver.holder.HolderList.toArray()

      JPanel targetHolderChoicePanel = new JPanel();
      JLabel numberOfWellsLabel = new JLabel("This Plate contains " + String.valueOf(parentRobotDriver.thePlate().numberOfWells()) + " wells. Choose The Target Holder:");
      targetHolderChoicePanel.add(numberOfWellsLabel);
      // choice of the TargetHolder
      HolderList targetTecanHolders = parentRobotDriver.tecanHolders().getNonInputHoldersOfSize(parentRobotDriver.thePlate().numberOfWells());
      JComboBox targetHolderCB = new JComboBox(targetTecanHolders.toArray());
      targetHolderCB.setSelectedIndex(0);
      parentRobotDriver.thePlate().setTargetHolder(targetTecanHolders.get(0));
      targetHolderCB.addActionListener(
        new AbstractAction() {
          private static final long serialVersionUID = 1L;
View Full Code Here

Examples of net.aufdemrand.denizen.objects.dList.toArray()

                || (sign.getType() != Material.WALL_SIGN
                && sign.getType() != Material.SIGN_POST))
            sign.setType(type == Type.WALL_SIGN ? Material.WALL_SIGN: Material.SIGN_POST);
        BlockState signState = sign.getState();

        Utilities.setSignLines((Sign) signState, text.toArray(4));
        if (direction != null)
            Utilities.setSignRotation(signState, direction);
        else if (type == Type.WALL_SIGN)
            Utilities.setSignRotation(signState);
    }
View Full Code Here

Examples of net.helipilot50.stocktrade.displayproject.Array_Of_DisplayNode.toArray()

                    rootNode.setUserObject(ListView.this);

                    Enumeration kids = rootNode.children();
                    Array_Of_DisplayNode data = new Array_Of_DisplayNode(rootNode.getClass(), kids);

                    ListView.this.setListData(data.toArray());
                    ListView.this.tableModel.setViewNodes(data);
                }
          }
          @Override
          public String toString() {
View Full Code Here

Examples of net.md_5.bungee.protocol.MinecraftOutput.toArray()

            if ( user.getPendingConnection().getVersion() < ProtocolConstants.MINECRAFT_SNAPSHOT )
            {
                MinecraftOutput out = new MinecraftOutput();
                out.writeStringUTF8WithoutLengthHeaderBecauseDinnerboneStuffedUpTheMCBrandPacket( ProxyServer.getInstance().getName() + " (" + ProxyServer.getInstance().getVersion() + ")" );
                user.unsafe().sendPacket( new PluginMessage( "MC|Brand", out.toArray(), handshakeHandler.isServerForge() ) );
            } else
            {
                ByteBuf brand = ByteBufAllocator.DEFAULT.heapBuffer();
                DefinedPacket.writeString( bungee.getName() + " (" + bungee.getVersion() + ")", brand );
                user.unsafe().sendPacket( new PluginMessage( "MC|Brand", brand.array().clone(), handshakeHandler.isServerForge() ) );
View Full Code Here

Examples of net.minidev.json.JSONArray.toArray()

        final DlsPermission dlsPerm = new DlsPermission();
        dlsPerm.setField(field);

        JSONArray ja = (JSONArray) ((JSONObject) dlsPermission
            .get(field)).get("read");
        dlsPerm.addReadTokens(ja.toArray(new String[0]));

        ja = (JSONArray) ((JSONObject) dlsPermission.get(field))
            .get("update");
        dlsPerm.addUpdateTokens(ja.toArray(new String[0]));
View Full Code Here

Examples of net.myrrix.common.collection.FastIDSet.toArray()

    }
    FastIDSet chosen = new FastIDSet(n);   
    while (it.hasNext()) {
      chosen.add(it.nextLong());
    }
    return chosen.toArray();
  }

}
View Full Code Here

Examples of net.rim.device.api.util.DataBuffer.toArray()

            int bytesRead = decryptor.read( read );
            if( bytesRead > 0 ) {
            databuffer.write(read, 0, bytesRead);
            }
           
            byte[] decryptedData = databuffer.toArray();
            return new String(decryptedData);
        }catch( CryptoTokenException e ) {
            StaticDataHelper.log(e.toString());
        } catch (CryptoUnsupportedOperationException e) {
            StaticDataHelper.log(e.toString());
View Full Code Here

Examples of net.sf.json.JSONArray.toArray()

     
      //Parseamos la informacion de los comentarios, que es un objeto de objeto_principal que tiene un array, array_comentarios
          JSONArray array_comentarios = objeto.getJSONArray("http://purl.org/dc/elements/1.1/Comentarios");
         
          //array_comentarios tiene a su vez n objetos, pero sólo nos interesa InformacionComentarios
          Object[] nuevo_array = array_comentarios.toArray();
          String texto = "InformacionComentarios";
         
          for(int i=0;i<nuevo_array.length;i++){
           
            String comparacion = nuevo_array[i].toString();
View Full Code Here

Examples of net.sourceforge.ganttproject.task.dependency.TaskDependencySlice.toArray()

        Task[] tasks = myTaskManager.getTasks();
        for (int i = 0; i < tasks.length; i++) {
            Task task = tasks[i];
            TaskGraphNode tgn = getTaskGraphNode(task);
            TaskDependencySlice dependencies = task.getDependenciesAsDependee();
            TaskDependency[] relationship = dependencies.toArray();
            for (int j = 0; j < relationship.length; j++) {
                Task successor = relationship[j].getDependant();
                tgn.addSuccessor(getTaskGraphNode(successor));
            }
        }
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.