prefuse.util.collections
Class NullComparator<E>

java.lang.Object
  extended by prefuse.util.collections.NullComparator<E>
All Implemented Interfaces:
java.util.Comparator<E>

public class NullComparator<E>
extends java.lang.Object
implements java.util.Comparator<E>

A do-nothing comparator that simply treats all objects as equal.

Author:
jeffrey heer

Constructor Summary
NullComparator()
           
 
Method Summary
 int compare(E a, E b)
           
 
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

NullComparator

public NullComparator()
Method Detail

compare

public int compare(E a,
                   E b)
Specified by:
compare in interface java.util.Comparator<E>


Copyright © 2008 Regents of the University of California