Exemplo n.º 1
0
 public Vertex getReferenceVertex() {
   // System.out.println("value = " + value);
   CloseableSequence<Vertex> i = values.get(VALUE, NAMESPACES_VERTEX_ID);
   try {
     return i.hasNext() ? i.next() : null;
   } finally {
     i.close();
   }
 }
Exemplo n.º 2
0
    public Vertex findVertex(final Value value) {
      CloseableSequence<Vertex> i = values.get(VALUE, value.stringValue());
      try {
        while (i.hasNext()) {
          Vertex v = i.next();

          if (matches(v, value)) {
            return v;
          }
        }

        return null;
      } finally {
        i.close();
      }
    }