@Test public void convertToSortsShouldSupportId() { assertThat(SortConverter.convertToSorts(ImmutableList.of("id desc"))) .containsExactly(new Sort(SortClause.Id, Order.REVERSE)); }
public static List<Sort> convertToSorts(List<String> jmapSorts) { Preconditions.checkNotNull(jmapSorts); return jmapSorts.stream() .map(SortConverter::toSort) .collect(Guavate.toImmutableList()); }
SortConverter { public static List<Sort> convertToSorts(List<String> jmapSorts) { Preconditions.checkNotNull(jmapSorts); return jmapSorts.stream() .map(SortConverter::toSort) .collect(Guavate.toImmutableList()); } }
SortConverter { public static List<Sort> convertToSorts(List<String> jmapSorts) { Preconditions.checkNotNull(jmapSorts); return jmapSorts.stream() .map(SortConverter::toSort) .collect(Guavate.toImmutableList()); }  }
SortConverter { public static List<Sort> convertToSorts(List<String> jmapSorts) { Preconditions.checkNotNull(jmapSorts); return jmapSorts.stream() .map(SortConverter::toSort) .collect(Guavate.toImmutableList()); }  static List<Sort> convertToSorts(List<String> jmapSorts); }
SortConverter { public static List<Sort> convertToSorts(List<String> jmapSorts) { Preconditions.checkNotNull(jmapSorts); return jmapSorts.stream() .map(SortConverter::toSort) .collect(Guavate.toImmutableList()); }  static List<Sort> convertToSorts(List<String> jmapSorts);  }