patterntesting.runtime.util
Class ObjectComparator
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectComparator
public ObjectComparator()
compare
public int compare(Object o1,
Object o2)
- Compare.
- Specified by:
compare in interface Comparator<Object>
- Parameters:
o1 - the object 1o2 - 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.