daikon
Class PptCombined.PpSizeComparator

Object
  extended by PptCombined.PpSizeComparator
All Implemented Interfaces:
Comparator<PptTopLevel>
Enclosing class:
PptCombined

public static final class PptCombined.PpSizeComparator
extends Object
implements Comparator<PptTopLevel>

Given a map, sort elements of the map according to the size of the mapped-to list.


Constructor Summary
PptCombined.PpSizeComparator(Map<PptTopLevel,List<PptTopLevel>> pp)
           
 
Method Summary
 int compare(PptTopLevel ppt1, PptTopLevel ppt2)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface Comparator
equals
 

Constructor Detail

PptCombined.PpSizeComparator

public PptCombined.PpSizeComparator(Map<PptTopLevel,List<PptTopLevel>> pp)
Method Detail

compare

public int compare(PptTopLevel ppt1,
                   PptTopLevel ppt2)
Specified by:
compare in interface Comparator<PptTopLevel>