Iterable<Integer> keys = new TreeSet<>(map.keySet()); for(Integer i : keys){ if(!excludeGeomFields || !cachedGeomColumnNames.containsValue(i)) { if (allFields.length() > 0) { allFields.append(",");
/** * Add an {@link Edge} connecting vertices in the DAG * @param edge The edge to be added * @return {@link DAG} */ public synchronized DAG addEdge(Edge edge) { // Sanity checks if (!vertices.containsValue(edge.getInputVertex())) { throw new IllegalArgumentException( "Input vertex " + edge.getInputVertex() + " doesn't exist!"); } if (!vertices.containsValue(edge.getOutputVertex())) { throw new IllegalArgumentException( "Output vertex " + edge.getOutputVertex() + " doesn't exist!"); } if (edges.contains(edge)) { throw new IllegalArgumentException( "Edge " + edge + " already defined!"); } // inform the vertices edge.getInputVertex().addOutputVertex(edge.getOutputVertex(), edge); edge.getOutputVertex().addInputVertex(edge.getInputVertex(), edge); edges.add(edge); return this; }
"Input vertex " + edge.getInputVertexGroup() + " doesn't exist!"); if (!vertices.containsValue(edge.getOutputVertex())) { throw new IllegalArgumentException( "Output vertex " + edge.getOutputVertex() + " doesn't exist!");