@Test public void testCriterion() throws Exception { OrCriterion criterion = new OrCriterion(new RawCriterion("(a=b)"), new RawCriterion("(c=d)")); assertThat(criterion.value(), equalTo("(|(a=b)(c=d))")); assertThat(criterion.filter(), notNullValue()); }
@Override public String value() { if(filters.isEmpty()) { return null; } StringBuilder builder = new StringBuilder(32); builder.append("(|"); for(Criterion f : filters) { builder.append(f.value()); } builder.append(')'); return builder.toString(); }
OrCriterion extends AbstractCriterion { @Override public String value() { if(filters.isEmpty()) { return null; } StringBuilder builder = new StringBuilder(32); builder.append("(|"); for(Criterion f : filters) { builder.append(f.value()); } builder.append(')'); return builder.toString(); } }
OrCriterion extends AbstractCriterion { @Override public String value() { if(filters.isEmpty()) { return null; } StringBuilder builder = new StringBuilder(32); builder.append("(|"); for(Criterion f : filters) { builder.append(f.value()); } builder.append(')'); return builder.toString(); } OrCriterion(Criterion... criterions);  OrCriterion(Collection<? extends Criterion> criterions); }
OrCriterion extends AbstractCriterion { @Override public String value() { if(filters.isEmpty()) { return null; } StringBuilder builder = new StringBuilder(32); builder.append("(|"); for(Criterion f : filters) { builder.append(f.value()); } builder.append(')'); return builder.toString(); } OrCriterion(Criterion... criterions);  OrCriterion(Collection<? extends Criterion> criterions); @Override String value(); }
OrCriterion extends AbstractCriterion { @Override public String value() { if(filters.isEmpty()) { return null; } StringBuilder builder = new StringBuilder(32); builder.append("(|"); for(Criterion f : filters) { builder.append(f.value()); } builder.append(')'); return builder.toString(); } OrCriterion(Criterion... criterions);  OrCriterion(Collection<? extends Criterion> criterions); @Override String value();  }