patterntesting.runtime.util
Class ObjectComparator

Package class diagram package ObjectComparator
java.lang.Object
  extended by patterntesting.runtime.util.ObjectComparator
All Implemented Interfaces:
Serializable, Comparator<Object>

public class ObjectComparator
extends Object
implements Comparator<Object>, Serializable

Compares two objects using their string representation.

Since:
11.02.2009
Version:
$Revision: 1.4 $
Author:
oliver
See Also:
Serialized Form

Constructor Summary
ObjectComparator()
           
 
Method Summary
 int compare(Object o1, Object o2)
          Compare.
 
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

ObjectComparator

public ObjectComparator()
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Compare.

Specified by:
compare in interface Comparator<Object>
Parameters:
o1 - the object 1
o2 - the object 2
Returns:
0 if both are equals
See Also:
Comparator.compare(java.lang.Object, java.lang.Object)


Copyright © 2002–2014 PatternTesting Team. All rights reserved.