@Test void sortSingleAttrDefault() { Sort sort = new Sort("attr"); assertEquals("attr", sort.iterator().next().getAttr()); assertEquals(ASC, sort.iterator().next().getDirection()); }
@Override public Iterator<Order> iterator() { return orders.iterator(); }
Sort implements Iterable<Sort.Order> { @Override public Iterator<Order> iterator() { return orders.iterator(); } }
Sort implements Iterable<Sort.Order> { @Override public Iterator<Order> iterator() { return orders.iterator(); } Sort();  Sort(String attr);  Sort(String attr, Direction direction);  Sort(List<Sort.Order> orders);  Sort(Sort sort); }
Sort implements Iterable<Sort.Order> { @Override public Iterator<Order> iterator() { return orders.iterator(); } Sort();  Sort(String attr);  Sort(String attr, Direction direction);  Sort(List<Sort.Order> orders);  Sort(Sort sort); @Override Iterator<Order> iterator(); Sort on(String attr); Sort on(String attr, Direction direction); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); static Sort parse(String orderByStr); String toSortString(); boolean hasField(String attributeName); }
Sort implements Iterable<Sort.Order> { @Override public Iterator<Order> iterator() { return orders.iterator(); } Sort();  Sort(String attr);  Sort(String attr, Direction direction);  Sort(List<Sort.Order> orders);  Sort(Sort sort); @Override Iterator<Order> iterator(); Sort on(String attr); Sort on(String attr, Direction direction); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); static Sort parse(String orderByStr); String toSortString(); boolean hasField(String attributeName);  }