org.specrunner.comparators.core
Class ComparatorJodatime

java.lang.Object
  extended by org.specrunner.comparators.core.AbstractComparatorTime
      extended by 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

Field Summary
 
Fields inherited from class org.specrunner.comparators.core.AbstractComparatorTime
FEATURE_TOLERANCE
 
Constructor Summary
ComparatorJodatime()
           
 
Method Summary
 int compare(Object expected, Object received)
           
 Class<?> getType()
          The comparator reference type.
 boolean match(Object expected, Object received)
          Says if two objects can be considered equals.
 
Methods inherited from class org.specrunner.comparators.core.AbstractComparatorTime
compare, getTolerance, initialize, setTolerance
 
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

ComparatorJodatime

public ComparatorJodatime()
Method Detail

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.