/** * Returns true if the sorting is done in descending order. * * @since 3.0 */ public boolean isDescending() { return !isAscending(); }
public Object getValueAt(int row, int column) { Ordering ordering = getOrdering(row); switch (column) { case 0: return ordering.getSortSpecString(); case 1: return ordering.isAscending() ? Boolean.TRUE : Boolean.FALSE; case 2: return ordering.isCaseInsensitive() ? Boolean.TRUE : Boolean.FALSE; default: throw new IndexOutOfBoundsException("Invalid column: " + column); } }
if (!ord.isAscending()) { buf.append(" DESC");
if (!ord.isAscending()) { mainBuffer.append(" DESC");
for (Ordering o : query.getOrderings()) { key.append('/').append(o.getSortSpecString()); if (!o.isAscending()) { key.append(":d");
return (isAscending()) ? compareResult : -compareResult;