org.specrunner.comparators
Interface IComparator

All Superinterfaces:
Comparator<Object>, IResetable, Serializable
All Known Implementing Classes:
AbstractComparatorTime, ComparatorClob, ComparatorClobNormalized, ComparatorClobTrim, ComparatorDate, ComparatorDefault, ComparatorJodatime, ComparatorNode, ComparatorString, ComparatorStringNormalized, ComparatorStringTrim, ComparatorTime, ComparatorTimestamp, ComparatorTrue

public interface IComparator
extends IResetable, Comparator<Object>

Compare tow objects.

Author:
Thiago Santos

Method Summary
 Class<?> getType()
          The comparator reference type.
 boolean match(Object expected, Object received)
          Says if two objects can be considered equals.
 
Methods inherited from interface org.specrunner.util.mapping.IResetable
initialize
 
Methods inherited from interface java.util.Comparator
compare, equals
 

Method Detail

getType

Class<?> getType()
The comparator reference type.

Returns:
The comparator target.

match

boolean match(Object expected,
              Object received)
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.


Copyright © 2014. All rights reserved.