org.millscript.millscript.datatypes
Class GeneralComparator

java.lang.Object
  extended by org.millscript.millscript.datatypes.GeneralComparator
All Implemented Interfaces:
java.io.Serializable, java.util.Comparator<java.lang.Object>

Deprecated. this is deprecated in favour of the new MillScript-Util list and map implementations genericised BinaryTreeMap, which only maps comparable types

@Deprecated
public final class GeneralComparator
extends java.lang.Object
implements java.util.Comparator<java.lang.Object>, java.io.Serializable

This class implements a general comparator, which handles incompatible types without throwing a ClassCastException.

See Also:
Serialized Form

Constructor Summary
GeneralComparator()
          Deprecated.  
 
Method Summary
 int compare(java.lang.Object a, java.lang.Object b)
          Deprecated.  
 
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

GeneralComparator

public GeneralComparator()
Deprecated. 
Method Detail

compare

public int compare(java.lang.Object a,
                   java.lang.Object b)
Deprecated. 
Specified by:
compare in interface java.util.Comparator<java.lang.Object>
See Also:
Comparator.compare(java.lang.Object, java.lang.Object)


Copyright © 2001-2007 Open World Ltd. All Rights Reserved.