2223242526272829
* @throws EGQLException */ public static void ensureParamSize(Collection<Evaluator> ops, Integer ...paramSizes ) throws EGQLException { if (!newHashSet(paramSizes).contains(ops.size())) { throw new EGQLE003Exception(); } }
2728293031323334
@Override public void validate() throws EGQLException { int paramSize = this.ops.size(); if (paramSize == 0 || (paramSize != 1 && paramSize % 2 != 0)) { throw new EGQLE003Exception(); } }