com.waveset.object
Class ObjectRef.NameComparator

java.lang.Object
  extended bycom.waveset.object.ObjectRef.NameComparator
All Implemented Interfaces:
java.util.Comparator
Enclosing class:
ObjectRef

public static class ObjectRef.NameComparator
extends java.lang.Object
implements java.util.Comparator

Implement the Comparator interface to sort ObjectRef instances by name and id.


Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
 boolean equals(java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface java.util.Comparator