fi.hut.tml.xsmiles.mlfc.css
Class XSmilesCSSRuleListImpl.CSSComparer

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.css.XSmilesCSSRuleListImpl.CSSComparer
All Implemented Interfaces:
Comparer
Enclosing class:
XSmilesCSSRuleListImpl

public static class XSmilesCSSRuleListImpl.CSSComparer
extends java.lang.Object
implements Comparer

a comparer class for the QuickSort algorithm in package mlfc.general


Constructor Summary
XSmilesCSSRuleListImpl.CSSComparer()
           
 
Method Summary
 int compare(java.lang.Object handle, java.lang.Object o1, java.lang.Object o2)
          Handle is used e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSmilesCSSRuleListImpl.CSSComparer

public XSmilesCSSRuleListImpl.CSSComparer()
Method Detail

compare

public int compare(java.lang.Object handle,
                   java.lang.Object o1,
                   java.lang.Object o2)
Description copied from interface: Comparer
Handle is used e.g. to distinguish different types of sorting or just passed as an additional parameter. <0: o1 < o2 0: o1 = o2 >0: o1 > o2

Specified by:
compare in interface Comparer


X-Smiles 1.2