org.specrunner.report.core
Class TimeComparator

java.lang.Object
  extended by org.specrunner.report.core.TimeComparator
All Implemented Interfaces:
Comparator<Resume>

public final class TimeComparator
extends Object
implements Comparator<Resume>

Default report time comparator.

Ordered by: time (countdown), index.

Author:
Thiago Santos

Method Summary
 int compare(Resume o1, Resume o2)
           
static TimeComparator get()
          The instance access method.
 
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
 

Method Detail

get

public static TimeComparator get()
The instance access method.

Returns:
The comparator.

compare

public int compare(Resume o1,
                   Resume o2)
Specified by:
compare in interface Comparator<Resume>


Copyright © 2014. All rights reserved.