@Test public void testToCypherFilterSpecial() { docId = new DocumentIdPair("attr","name","artist", "I'm the best"); String cypherFilter = this.docId.toCypherFilter(); Assert.assertEquals("attr: 'artist', name: 'I\\\'m the best'", cypherFilter); }
@Override public String toCypherFilter() { StringBuilder sb = new StringBuilder(); sb.append(this.key1); sb.append(": "); sb.append(this.v1.toCypher()); sb.append(", "); sb.append(this.key2); sb.append(": "); sb.append(this.v2.toCypher()); return sb.toString(); }
DocumentIdPair implements DocumentId { @Override public String toCypherFilter() { StringBuilder sb = new StringBuilder(); sb.append(this.key1); sb.append(": "); sb.append(this.v1.toCypher()); sb.append(", "); sb.append(this.key2); sb.append(": "); sb.append(this.v2.toCypher()); return sb.toString(); } }
DocumentIdPair implements DocumentId { @Override public String toCypherFilter() { StringBuilder sb = new StringBuilder(); sb.append(this.key1); sb.append(": "); sb.append(this.v1.toCypher()); sb.append(", "); sb.append(this.key2); sb.append(": "); sb.append(this.v2.toCypher()); return sb.toString(); } DocumentIdPair(String k1, String k2, Object v1, Object v2); }
DocumentIdPair implements DocumentId { @Override public String toCypherFilter() { StringBuilder sb = new StringBuilder(); sb.append(this.key1); sb.append(": "); sb.append(this.v1.toCypher()); sb.append(", "); sb.append(this.key2); sb.append(": "); sb.append(this.v2.toCypher()); return sb.toString(); } DocumentIdPair(String k1, String k2, Object v1, Object v2); @Override Map<String, String> getFields(); @Override String toCypherFilter(); }
DocumentIdPair implements DocumentId { @Override public String toCypherFilter() { StringBuilder sb = new StringBuilder(); sb.append(this.key1); sb.append(": "); sb.append(this.v1.toCypher()); sb.append(", "); sb.append(this.key2); sb.append(": "); sb.append(this.v2.toCypher()); return sb.toString(); } DocumentIdPair(String k1, String k2, Object v1, Object v2); @Override Map<String, String> getFields(); @Override String toCypherFilter();  }