Example #1
0
 protected static String pwdOutputFor(Object... entities) {
   StringBuilder builder = new StringBuilder();
   for (Object entity : entities) {
     builder.append((builder.length() == 0 ? "" : "-->"));
     if (entity instanceof Node) {
       builder.append("(").append(((Node) entity).getId()).append(")");
     } else {
       builder.append("<").append(((Relationship) entity).getId()).append(">");
     }
   }
   return Pattern.quote(builder.toString());
 }