Examples of toArray()


Examples of org.elasticsearch.common.trove.list.array.TIntArrayList.toArray()

            @Override public boolean onPortNumber(int portNumber) {
                ports.add(portNumber);
                return false;
            }
        });
        return ports.toArray(new int[ports.size()]);
    }

    public boolean iterate(PortCallback callback) throws NumberFormatException {
        StringTokenizer st = new StringTokenizer(portRange, ",");
        boolean success = false;
View Full Code Here

Examples of org.exolab.castor.util.List.toArray()

                break;
            }
            names.add(token);
        }
        _matches = new String[names.size()];
        names.toArray(_matches);

    } //-- setMatches

    public void setMultivalued(boolean multivalued) {
        this._multivalued = multivalued;
View Full Code Here

Examples of org.fto.jthink.lang.ObjectBuffered.toArray()

        if(startIndex>=0 && length>=0){
          //List values = Arrays.asList(sql.getValues());
          ObjectBuffered values = sql.getValueBuffered();
          values.append(new Integer(startIndex));
          values.append(new Integer(length));
          return executeStoredProcedure(sql.getSQLString(), values.toArray(), doClazz);
        }else{
          return executeStoredProcedure(sql.getSQLString(), sql.getValues(), doClazz);
        }
      case SQL.UNDEFINED_SP:
        return executeStoredProcedure(sql.getSQLString(), sql.getValues(), doClazz);
View Full Code Here

Examples of org.geotools.data.simple.SimpleFeatureCollection.toArray()

            typeName = fCollection.getSchema().getTypeName();
            assertTrue("GenStreams".equals(typeName));
            assertTrue(fCollection.size() > 0);
            assertFalse(fCollection.isEmpty());

            Object[] array = fCollection.toArray();
            assertTrue(array.length == fCollection.size());
            assertNotNull(array[0]);
            assertTrue(array[0] instanceof PreGeneralizedSimpleFeature);

            array = fCollection.toArray(new Object[fCollection.size()]);
View Full Code Here

Examples of org.geotools.feature.FeatureCollection.toArray()

    @Test
    public void testElementValueFilter() throws IOException {
        Filter filter = FF.equals(FF.property("dc:identifier/dc:value", CSWRecordDescriptor.NAMESPACES), FF.literal("urn:uuid:1ef30a8b-876d-4828-9246-c37ab4510bbd"));
        FeatureCollection records = store.getRecords(new Query("Record", filter), Transaction.AUTO_COMMIT);
        assertEquals(1, records.size());
        Feature record = (Feature) records.toArray()[0];
        assertEquals("urn:uuid:1ef30a8b-876d-4828-9246-c37ab4510bbd", getSimpleLiteralValue(record, "identifier"));
        assertEquals("http://purl.org/dc/dcmitype/Service", getSimpleLiteralValue(record, "type"));
        assertEquals("Proin sit amet justo. In justo. Aenean adipiscing nulla id tellus.", getSimpleLiteralValue(record, "abstract"));
    }
   
View Full Code Here

Examples of org.gephi.graph.api.EdgeIterable.toArray()

        if (exportHierarchy && graphModel.isHierarchical()) {
            it = hgraph.getEdgesTree();
        } else {
            it = hgraph.getEdgesAndMetaEdges();
        }
        for (Edge e : it.toArray()) {
            if (cancel) {
                break;
            }
            Element edgeE = createEdge(document, e);
            edgesE.appendChild(edgeE);
View Full Code Here

Examples of org.gephi.graph.dhns.node.AbstractNode.toArray()

        }

        //To array
        for (AVLItem item : nodeTree) {
            TreeNodeImpl node = (TreeNodeImpl) item;
            node.toArray();
        }
        return root;
    }

    private static class TreeNodeImpl implements ImmutableTreeNode, AVLItem {
View Full Code Here

Examples of org.glassfish.admin.amx.base.UnprocessedConfigChange.toArray()

                        str(pce.getOldValue()),
                        str(pce.getNewValue()),
                        objectName,
                        reason);
                //xdebug("SystemStatusImpl: UnprocessedConfigChange: " + ucc);
                changesObjects.add(ucc.toArray());
            }
        }

        return changesObjects;
    }
View Full Code Here

Examples of org.hsqldb.lib.HashSet.toArray()

        try {
            set.add(InetAddress.getByName("loopback").getHostAddress());
            set.add(InetAddress.getByName("loopback").getHostName());
        } catch (Exception e) {}

        return (String[]) set.toArray(new String[set.size()]);
    }

    /**
     * Retrieves a new default properties object for a server of the
     * specified protocol
View Full Code Here

Examples of org.hsqldb.lib.HsqlArrayList.toArray()

            }
        }

        String[] array = new String[list.size()];

        list.toArray(array);

        return array;
    }

    public String[] getRightstSQL() {
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.