@Test(expected = IllegalArgumentException.class) public void testNotInSelectionNullColumn() throws Exception { SelectionUtils.notInSelection(null, Collections.EMPTY_SET); }
@NonNull public static <T> String notInSelection(@NonNull final String column, @NonNull final Iterable<T> arguments) { if (column == null || column.isEmpty()) { throw new IllegalArgumentException("column must not be null or empty"); } final StringBuilder selection = new StringBuilder(256); selection.append(column); selection.append(" NOT IN "); selection.append('('); appendCommaSeparatedArguments(selection, arguments); selection.append(')'); return selection.toString(); }
SelectionUtils { @NonNull public static <T> String notInSelection(@NonNull final String column, @NonNull final Iterable<T> arguments) { if (column == null || column.isEmpty()) { throw new IllegalArgumentException("column must not be null or empty"); } final StringBuilder selection = new StringBuilder(256); selection.append(column); selection.append(" NOT IN "); selection.append('('); appendCommaSeparatedArguments(selection, arguments); selection.append(')'); return selection.toString(); } }
SelectionUtils { @NonNull public static <T> String notInSelection(@NonNull final String column, @NonNull final Iterable<T> arguments) { if (column == null || column.isEmpty()) { throw new IllegalArgumentException("column must not be null or empty"); } final StringBuilder selection = new StringBuilder(256); selection.append(column); selection.append(" NOT IN "); selection.append('('); appendCommaSeparatedArguments(selection, arguments); selection.append(')'); return selection.toString(); } private  SelectionUtils(); }
SelectionUtils { @NonNull public static <T> String notInSelection(@NonNull final String column, @NonNull final Iterable<T> arguments) { if (column == null || column.isEmpty()) { throw new IllegalArgumentException("column must not be null or empty"); } final StringBuilder selection = new StringBuilder(256); selection.append(column); selection.append(" NOT IN "); selection.append('('); appendCommaSeparatedArguments(selection, arguments); selection.append(')'); return selection.toString(); } private  SelectionUtils(); @NonNull static String orderByLongField(@NonNull final String column,
            @NonNull final long[] arguments); @NonNull static String orderByField(@NonNull final String column,
            @NonNull final Collection<T> arguments); @NonNull static String inSelectionLong(@NonNull final String column,
            @NonNull final long[] arguments); @NonNull static String inSelection(@NonNull final String column,
            @NonNull final Iterable<T> arguments); @NonNull static String notInSelection(@NonNull final String column,
            @NonNull final Iterable<T> arguments); }
SelectionUtils { @NonNull public static <T> String notInSelection(@NonNull final String column, @NonNull final Iterable<T> arguments) { if (column == null || column.isEmpty()) { throw new IllegalArgumentException("column must not be null or empty"); } final StringBuilder selection = new StringBuilder(256); selection.append(column); selection.append(" NOT IN "); selection.append('('); appendCommaSeparatedArguments(selection, arguments); selection.append(')'); return selection.toString(); } private  SelectionUtils(); @NonNull static String orderByLongField(@NonNull final String column,
            @NonNull final long[] arguments); @NonNull static String orderByField(@NonNull final String column,
            @NonNull final Collection<T> arguments); @NonNull static String inSelectionLong(@NonNull final String column,
            @NonNull final long[] arguments); @NonNull static String inSelection(@NonNull final String column,
            @NonNull final Iterable<T> arguments); @NonNull static String notInSelection(@NonNull final String column,
            @NonNull final Iterable<T> arguments);  }