ElegantJCharts Java API Specification v2.0

com.elegantj.editors
Class ExtComparator

java.lang.Object
  |
  +--com.elegantj.editors.ExtComparator
All Implemented Interfaces:
java.util.Comparator

public class ExtComparator
extends java.lang.Object
implements java.util.Comparator

ExtComparator class provides the extended comparator. It provides the comparison of one group of values to another group of values.


Constructor Summary
ExtComparator(boolean order)
          Creates a ExtComparator with specified sorting order
ExtComparator(int[] colNo, boolean[] ordering)
          Creates a ExtComparator with specified column indexes assiciated sorting orders
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
protected  int compareTo(java.lang.Object obj1, java.lang.Object obj2, boolean sortOrder)
          Compares the one object to another with given sorting order
 boolean equals(java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtComparator

public ExtComparator(boolean order)
Creates a ExtComparator with specified sorting order


ExtComparator

public ExtComparator(int[] colNo,
                     boolean[] ordering)
Creates a ExtComparator with specified column indexes assiciated sorting orders

Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator

compareTo

protected int compareTo(java.lang.Object obj1,
                        java.lang.Object obj2,
                        boolean sortOrder)
Compares the one object to another with given sorting order


equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface java.util.Comparator
Overrides:
equals in class java.lang.Object

ElegantJCharts Java API Specification v2.0

For any feedback, suggestion, or query, please revert back to support@elegantcharts.com

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjcharts.com
All Rights Reserved.