Here you can find the source of appendWhereArgsToSelectionArgs( String[] selectionArgs, String[] whereArgs)
Parameter | Description |
---|---|
selectionArgs | the original selectionArgs (if any) |
whereArgs | the whereArgs (if any) |
public static String[] appendWhereArgsToSelectionArgs( String[] selectionArgs, String[] whereArgs)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from w w w . j a v a2 s.c o m*/ * @param selectionArgs the original selectionArgs (if any) * @param whereArgs the whereArgs (if any) * @return both sets appended (whereArgs first) */ public static String[] appendWhereArgsToSelectionArgs( String[] selectionArgs, String[] whereArgs) { if (whereArgs == null || whereArgs.length == 0) { return selectionArgs; } if (selectionArgs == null || selectionArgs.length == 0) { return whereArgs; } final String[] result = new String[selectionArgs.length + whereArgs.length]; System.arraycopy(whereArgs, 0, result, 0, whereArgs.length); System.arraycopy(selectionArgs, 0, result, whereArgs.length, selectionArgs.length); return result; } }