@Test(expected = NullPointerException.class) public void testOrderByLongFieldNullArgument() throws Exception { SelectionUtils.orderByLongField("Arse", null); }
@NonNull public static String orderByLongField(@NonNull final String column, @NonNull final long[] arguments) { if (column == null || column.isEmpty()) { throw new IllegalArgumentException("column must not be null or empty"); } final StringBuilder order = new StringBuilder(256); boolean first = true; for (final long argument : arguments) { if (first) { first = false; } else { order.append(','); } order.append(column).append('=').append(argument).append(" DESC"); } return order.toString(); }
SelectionUtils { @NonNull public static String orderByLongField(@NonNull final String column, @NonNull final long[] arguments) { if (column == null || column.isEmpty()) { throw new IllegalArgumentException("column must not be null or empty"); } final StringBuilder order = new StringBuilder(256); boolean first = true; for (final long argument : arguments) { if (first) { first = false; } else { order.append(','); } order.append(column).append('=').append(argument).append(" DESC"); } return order.toString(); } }
SelectionUtils { @NonNull public static String orderByLongField(@NonNull final String column, @NonNull final long[] arguments) { if (column == null || column.isEmpty()) { throw new IllegalArgumentException("column must not be null or empty"); } final StringBuilder order = new StringBuilder(256); boolean first = true; for (final long argument : arguments) { if (first) { first = false; } else { order.append(','); } order.append(column).append('=').append(argument).append(" DESC"); } return order.toString(); } private  SelectionUtils(); }
SelectionUtils { @NonNull public static String orderByLongField(@NonNull final String column, @NonNull final long[] arguments) { if (column == null || column.isEmpty()) { throw new IllegalArgumentException("column must not be null or empty"); } final StringBuilder order = new StringBuilder(256); boolean first = true; for (final long argument : arguments) { if (first) { first = false; } else { order.append(','); } order.append(column).append('=').append(argument).append(" DESC"); } return order.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 String orderByLongField(@NonNull final String column, @NonNull final long[] arguments) { if (column == null || column.isEmpty()) { throw new IllegalArgumentException("column must not be null or empty"); } final StringBuilder order = new StringBuilder(256); boolean first = true; for (final long argument : arguments) { if (first) { first = false; } else { order.append(','); } order.append(column).append('=').append(argument).append(" DESC"); } return order.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);  }