/** * Sorts the given categories in-place, modifying the given array. * * @param categories * the categories to sort */ void sort(PropertySheetCategory[] categories) { Arrays.sort(categories, (a, b) -> PropertySheetSorter.this.compareCategories(a.getCategoryName(), b.getCategoryName())); } }
public int compare(Object a, Object b) { return PropertySheetSorter.this.compareCategories( ((PropertySheetCategory) a).getCategoryName(), ((PropertySheetCategory) b).getCategoryName()); } });
@Override public int compare(Object a, Object b) { return PropertySheetSorter.this.compareCategories( ((PropertySheetCategory) a).getCategoryName(), ((PropertySheetCategory) b).getCategoryName()); } });