de.erichseifert.gral.data.comparators
Class Ascending

java.lang.Object
  extended by de.erichseifert.gral.data.comparators.DataComparator
      extended by de.erichseifert.gral.data.comparators.Ascending
All Implemented Interfaces:
Serializable, Comparator<Number[]>

public class Ascending
extends DataComparator

Class that represents a DataComparator sorting a specific column in ascending order.

See Also:
Serialized Form

Constructor Summary
Ascending(int col)
          Creates a new Ascending object sorting according to the specified column.
 
Method Summary
 int compare(Number[] o1, Number[] o2)
           
 
Methods inherited from class de.erichseifert.gral.data.comparators.DataComparator
getColumn, setColumn
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

Ascending

public Ascending(int col)
Creates a new Ascending object sorting according to the specified column.

Parameters:
col - Column index to be compared.
Method Detail

compare

public int compare(Number[] o1,
                   Number[] o2)


Copyright © 2009-2010. All Rights Reserved.