public QueryBindingImpl cloneAndFilter ( Set < QueryArgument > args ) { QueryBindingImpl binding = new QueryBindingImpl ( ) ; for ( QueryArgument arg : getBoundArgs ( ) ) { if ( args . contains ( arg ) ) { binding . set ( arg , bindingMap . get ( arg ) ) ; } } return binding ; }
Clone this instance of QueryBinding and filter the binding map given by args . Only query arguments within the set of args will be available in the result . Only the QueryBinding class itself will be cloned but not the query arguments .