private void decideTypeFilterToAdd ( Filter filter ) { Filter step = filter ; if ( Operator . MATCH == step . getRelation ( ) . getOperator ( ) || step . getRelation ( ) . getRightTerm ( ) instanceof FunctionSelector ) { if ( matchList . isEmpty ( ) ) { matchList = new ArrayList <> ( ) ; } matchList . add ( filter ) ; } else { if ( filterList . isEmpty ( ) ) { filterList = new ArrayList <> ( ) ; } filterList . add ( filter ) ; } }
Add filter in the correct list .