@Test public void testAppendCommaSeparatedArgumentsLongMultipleArguments() throws Exception { final StringBuilder sb = new StringBuilder(); SelectionUtils.appendCommaSeparatedArgumentsLong(sb, new long[] {666, 1024}); assertEquals("'666','1024'", sb.toString()); }
static void appendCommaSeparatedArgumentsLong(@NonNull final StringBuilder target, @NonNull final long[] arguments) { if (target == null) { throw new NullPointerException("target must not be null"); } boolean first = true; for (final long arg : arguments) { if (first) { first = false; } else { target.append(','); } target.append('\'').append(arg).append('\''); } }
SelectionUtils { static void appendCommaSeparatedArgumentsLong(@NonNull final StringBuilder target, @NonNull final long[] arguments) { if (target == null) { throw new NullPointerException("target must not be null"); } boolean first = true; for (final long arg : arguments) { if (first) { first = false; } else { target.append(','); } target.append('\'').append(arg).append('\''); } } }
SelectionUtils { static void appendCommaSeparatedArgumentsLong(@NonNull final StringBuilder target, @NonNull final long[] arguments) { if (target == null) { throw new NullPointerException("target must not be null"); } boolean first = true; for (final long arg : arguments) { if (first) { first = false; } else { target.append(','); } target.append('\'').append(arg).append('\''); } } private  SelectionUtils(); }
SelectionUtils { static void appendCommaSeparatedArgumentsLong(@NonNull final StringBuilder target, @NonNull final long[] arguments) { if (target == null) { throw new NullPointerException("target must not be null"); } boolean first = true; for (final long arg : arguments) { if (first) { first = false; } else { target.append(','); } target.append('\'').append(arg).append('\''); } } 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 { static void appendCommaSeparatedArgumentsLong(@NonNull final StringBuilder target, @NonNull final long[] arguments) { if (target == null) { throw new NullPointerException("target must not be null"); } boolean first = true; for (final long arg : arguments) { if (first) { first = false; } else { target.append(','); } target.append('\'').append(arg).append('\''); } } 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);  }