com.sun.labs.minion.indexer.entry
Class EntryIDComparator

java.lang.Object
  extended by com.sun.labs.minion.indexer.entry.EntryIDComparator
All Implemented Interfaces:
java.util.Comparator<Entry>

public class EntryIDComparator
extends java.lang.Object
implements java.util.Comparator<Entry>

A comparator for entries that compares them based on their IDs. This is useful for sorting the list by ID.


Constructor Summary
EntryIDComparator()
          Creates a comparator for entry ids.
 
Method Summary
 int compare(Entry e1, Entry e2)
           
 
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

EntryIDComparator

public EntryIDComparator()
Creates a comparator for entry ids.

Method Detail

compare

public int compare(Entry e1,
                   Entry e2)
Specified by:
compare in interface java.util.Comparator<Entry>