private String[] addtoSelectionArgs(final String argValue,final String[] selectionArgsIn){
  String[] selectionArgs=selectionArgsIn;
  List<String> selectionArgsList=new ArrayList<>();
  selectionArgsList.add(argValue);
  if (null != selectionArgsIn) {
    for (    final String arg : selectionArgsIn) {
      selectionArgsList.add(arg);
    }
  }
  selectionArgs=selectionArgsList.toArray(new String[0]);
  selectionArgsList.clear();
  selectionArgsList=null;
  return selectionArgs;
}

private String [ ] addtoSelectionArgs ( final String argValue , final String [ ] selectionArgsIn ) { String [ ] selectionArgs = selectionArgsIn ; List < String > selectionArgsList = new ArrayList < > ( ) ; selectionArgsList . add ( argValue ) ; if ( null != selectionArgsIn ) { for ( final String arg : selectionArgsIn ) { selectionArgsList . add ( arg ) ; } } selectionArgs = selectionArgsList . toArray ( new String [ 0 ] ) ; selectionArgsList . clear ( ) ; selectionArgsList = null ; return selectionArgs ; }
adds criteria to ( existing ) selection arguments criteria is always added as first element into ( existing ) selection arguments
