com.intel.gpe.util.sorting
Class VectorSorter

java.lang.Object
  extended by com.intel.gpe.util.sorting.VectorSorter

public class VectorSorter
extends java.lang.Object

Sort a vector of comparable objects. If objects do not implement the Comparable interface use their String representation for comparision.

Version:
$Id$
Author:
Ralf Ratering

Method Summary
static void main(java.lang.String[] args)
           
static java.util.Vector sort(java.util.Vector v)
           
static java.util.Vector sort(java.util.Vector _vector, boolean _ascending)
           
static java.util.Vector sort(java.util.Vector _vector, boolean _ascending, boolean _useStrings)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(java.lang.String[] args)

sort

public static java.util.Vector sort(java.util.Vector v)
                             throws java.lang.ClassCastException
Throws:
java.lang.ClassCastException

sort

public static java.util.Vector sort(java.util.Vector _vector,
                                    boolean _ascending)
                             throws java.lang.ClassCastException
Throws:
java.lang.ClassCastException

sort

public static java.util.Vector sort(java.util.Vector _vector,
                                    boolean _ascending,
                                    boolean _useStrings)
                             throws java.lang.ClassCastException
Throws:
java.lang.ClassCastException


Copyright © 2008. All Rights Reserved.