NullComparator.java :  » Database-Client » prefuse » prefuse » util » collections » Java Open Source

Java Open Source » Database Client » prefuse 
prefuse » prefuse » util » collections » NullComparator.java
package prefuse.util.collections;

import java.util.Comparator;

/**
 * A do-nothing comparator that simply treats all objects as equal.
 * @author <a href="http://jheer.org">jeffrey heer</a>
 */
public class NullComparator implements Comparator {

  public int compare(Object o1, Object o2) {
    return 0;
  }

} // end of class NullComparator
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.