edu.upenn.gloDB
Class Track.FeatureMaxComparator

java.lang.Object
  extended by edu.upenn.gloDB.Track.FeatureMaxComparator
All Implemented Interfaces:
java.util.Comparator
Enclosing class:
Track

private static class Track.FeatureMaxComparator
extends java.lang.Object
implements java.util.Comparator


Constructor Summary
private Track.FeatureMaxComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compares this object with the specified object for 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

Track.FeatureMaxComparator

private Track.FeatureMaxComparator()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
            throws java.lang.ClassCastException
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. If can't cast argument as an Feature, then throws a java.lang.ClassCastException. If different sources, then sorts on the source ID.

Specified by:
compare in interface java.util.Comparator
Throws:
java.lang.ClassCastException



Copyright 2012 Stephen Fisher and Junhyong Kim, University of Pennsylvania. All Rights Reserved.