elf
Class SchemeComparator

java.lang.Object
  extended byelf.SchemeComparator
All Implemented Interfaces:
java.util.Comparator

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

A Comparator, for activities like sorting, that lets a procedure do the work of comparing.


Constructor Summary
SchemeComparator(Procedure proc)
           
 
Method Summary
 int compare(java.lang.Object a, java.lang.Object b)
           
 boolean equals(java.lang.Object that)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemeComparator

public SchemeComparator(Procedure proc)
Method Detail

compare

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

equals

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

hashCode

public int hashCode()