org.specrunner.comparators.core
Class ComparatorJodatime
java.lang.Object
org.specrunner.comparators.core.AbstractComparatorTime
org.specrunner.comparators.core.ComparatorJodatime
- All Implemented Interfaces:
- Serializable, Comparator<Object>, IComparator, IResetable
public class ComparatorJodatime
- extends AbstractComparatorTime
Comparator of ReadableInstants.
- Author:
- Thiago Santos
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComparatorJodatime
public ComparatorJodatime()
getType
public Class<?> getType()
- Description copied from interface:
IComparator
- The comparator reference type.
- Returns:
- The comparator target.
match
public boolean match(Object expected,
Object received)
- Description copied from interface:
IComparator
- Says if two objects can be considered equals.
- Parameters:
expected - The expected value.received - The received value.
- Returns:
- true, if they are equal, false, otherwise.
compare
public int compare(Object expected,
Object received)
Copyright © 2014. All rights reserved.