FreeHEP API
Version current

hep.graphics.heprep1.adapter
Class NumericalComparator

java.lang.Object
  extended byhep.graphics.heprep1.adapter.NumericalComparator
All Implemented Interfaces:
Comparator

public class NumericalComparator
extends Object
implements Comparator

FIXME: move somewhere else in freehep-base.

Version:
$Id: NumericalComparator.java,v 1.1 2004/07/22 21:02:50 duns Exp $
Author:
Mark Donszelmann
Source Code:
NumericalComparator.java

Constructor Summary
NumericalComparator()
           
 
Method Summary
 int compare(Object o1, Object o2)
          Sorts in numerical order, followed by Strings in alphabetical order.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

NumericalComparator

public NumericalComparator()
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Sorts in numerical order, followed by Strings in alphabetical order.

Specified by:
compare in interface Comparator

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.