org.jruby.util
Class Qsort
java.lang.Object
org.jruby.util.Qsort
public class Qsort
- extends java.lang.Object
- Author:
- Joseph LaFata (qbproger)
Constructor Summary |
Qsort()
|
Method Summary |
static void |
sort(java.lang.Comparable[] a)
The public function for sorting an array that's Comparable. |
static void |
sort(java.lang.Comparable[] a,
int begin,
int end)
Sort the items in the array passed in, in ascending order. |
static void |
sort(java.lang.Object[] a,
java.util.Comparator c)
|
static void |
sort(java.lang.Object[] a,
int begin,
int end,
java.util.Comparator c)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Qsort
public Qsort()
sort
public static void sort(java.lang.Comparable[] a)
- The public function for sorting an array that's Comparable.
- Parameters:
a
-
sort
public static void sort(java.lang.Object[] a,
java.util.Comparator c)
sort
public static void sort(java.lang.Comparable[] a,
int begin,
int end)
- Sort the items in the array passed in, in ascending order.
- Parameters:
a
- - the arraylo
- - Starting element index inclusivehi
- - End element index exclusive
sort
public static void sort(java.lang.Object[] a,
int begin,
int end,
java.util.Comparator c)
Copyright © 2002-2007 JRuby Team. All Rights Reserved.