public class QueryMatching
extends java.lang.Object
| Constructor and Description |
|---|
QueryMatching() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
match(Query a,
Query b)
Matches two queries safely.
|
static <TParam> boolean |
matchParameter(java.util.List<TParam> first,
java.util.List<TParam> second)
Determines if the two sets intersects.
|
public static boolean match(Query a, Query b)
If a query is null, it will only match if the other query is also null.
a - - first query to test.b - - second query to test.public static <TParam> boolean matchParameter(java.util.List<TParam> first,
java.util.List<TParam> second)
Note that the empty set is represented with [null] (list with a null element). The universe is represented with an empty list: [].
first - - first query.second - - second query.