@Test public void testSameOr() { GramBooleanQuery query1 = new GramBooleanQuery(GramBooleanQuery.QueryOp.OR); GramBooleanQuery query2 = new GramBooleanQuery(GramBooleanQuery.QueryOp.OR); query1 = GramBooleanQuery.combine(query1, (Arrays.asList("abcdef"))); query2 = GramBooleanQuery.combine(query2, (Arrays.asList("abcdef"))); Assert.assertEquals(query1, query2); Assert.assertEquals(query2, query1); }
static GramBooleanQuery combine(GramBooleanQuery query, List<String> list) { return computeConjunction(query, listNode(list)); }
GramBooleanQuery { static GramBooleanQuery combine(GramBooleanQuery query, List<String> list) { return computeConjunction(query, listNode(list)); } }
GramBooleanQuery { static GramBooleanQuery combine(GramBooleanQuery query, List<String> list) { return computeConjunction(query, listNode(list)); } GramBooleanQuery(QueryOp operator); }
GramBooleanQuery { static GramBooleanQuery combine(GramBooleanQuery query, List<String> list) { return computeConjunction(query, listNode(list)); } GramBooleanQuery(QueryOp operator); static GramBooleanQuery deepCopy(GramBooleanQuery query); @Override int hashCode(); @Override boolean equals(Object compareTo); boolean isEmpty(); @Override String toString(); String getLuceneQueryString(); }
GramBooleanQuery { static GramBooleanQuery combine(GramBooleanQuery query, List<String> list) { return computeConjunction(query, listNode(list)); } GramBooleanQuery(QueryOp operator); static GramBooleanQuery deepCopy(GramBooleanQuery query); @Override int hashCode(); @Override boolean equals(Object compareTo); boolean isEmpty(); @Override String toString(); String getLuceneQueryString();  }