org.yawlfoundation.yawl.scheduling.util
Class Utils.ValueComparer

java.lang.Object
  extended by org.yawlfoundation.yawl.scheduling.util.Utils.ValueComparer
All Implemented Interfaces:
Comparator
Enclosing class:
Utils

public static class Utils.ValueComparer
extends Object
implements Comparator

Author:
http://paaloliver.wordpress.com/2006/01/24/sorting-maps-in-java/

Constructor Summary
Utils.ValueComparer(Map<Object,Comparable> data, boolean descending)
           
 
Method Summary
 int compare(Object o1, Object o2)
           
 
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

Utils.ValueComparer

public Utils.ValueComparer(Map<Object,Comparable> data,
                           boolean descending)
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Specified by:
compare in interface Comparator


Copyright © 2004-2012 The YAWL Foundation.