KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jodd > util > sort > SystemSort


1 // Copyright (c) 2003-2007, Jodd Team (jodd.sf.net). All Rights Reserved.
2

3 package jodd.util.sort;
4
5 import java.util.Arrays JavaDoc;
6 import java.util.Comparator JavaDoc;
7
8 /**
9  * Default JDK sort. Uses {@link Arrays#sort(Object[], java.util.Comparator)}.
10  */

11 public class SystemSort implements Sorter {
12     
13     public void sort(Object JavaDoc a[], Comparator JavaDoc comparator) {
14         Arrays.sort(a, comparator);
15     }
16     
17     public void sort(Comparable JavaDoc a[]) {
18         Arrays.sort(a);
19     }
20 }
21
Popular Tags