org.specrunner.comparators.core
Class ComparatorTimestamp
java.lang.Object
org.specrunner.comparators.core.ComparatorDefault
org.specrunner.comparators.core.AbstractComparatorTime
org.specrunner.comparators.core.ComparatorTimestamp
- All Implemented Interfaces:
- Serializable, Comparator<Object>, IComparator, IResetable
public class ComparatorTimestamp
- extends AbstractComparatorTime
Comparator of timestamps.
- Author:
- Thiago Santos
- See Also:
- Serialized Form
|
Method Summary |
protected Long |
getMillis(Object obj)
Get the corresponding time information in milliseconds. |
Class<?> |
getType()
The comparator reference type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComparatorTimestamp
public ComparatorTimestamp()
getType
public Class<?> getType()
- Description copied from interface:
IComparator
- The comparator reference type.
- Specified by:
getType in interface IComparator- Overrides:
getType in class ComparatorDefault
- Returns:
- The comparator target.
getMillis
protected Long getMillis(Object obj)
- Description copied from class:
AbstractComparatorTime
- Get the corresponding time information in milliseconds.
- Specified by:
getMillis in class AbstractComparatorTime
- Parameters:
obj - The time object.
- Returns:
- The time in milliseconds corresponding to the object.
Copyright © 2014. All rights reserved.