|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.comparators.core.ComparatorDefault
public class ComparatorDefault
A default comparator. It compares nulls values, and if both are not null, it
uses Object.equals(Object).
| Constructor Summary | |
|---|---|
ComparatorDefault()
|
|
| Method Summary | |
|---|---|
int |
compare(Object o1,
Object o2)
|
Class<?> |
getType()
The comparator reference type. |
void |
initialize()
Initialize something. |
boolean |
match(Object expected,
Object received)
Says if two objects can be considered equals. |
protected String |
toString(Object obj)
Convert object to String. |
| 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 |
|---|
public ComparatorDefault()
| Method Detail |
|---|
public Class<?> getType()
IComparator
getType in interface IComparatorpublic void initialize()
IResetable
initialize in interface IResetable
public boolean match(Object expected,
Object received)
IComparator
match in interface IComparatorexpected - The expected value.received - The received value.
public int compare(Object o1,
Object o2)
compare in interface Comparator<Object>protected String toString(Object obj)
obj - An object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||