org.specrunner.report.core
Class StatusComparator

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

public final class StatusComparator
extends Object
implements Comparator<Resume>

Default report status comparator.

Ordered by fields: status (most relevante first), status counter (countdown), assertion count(countdown), time(countdown), index.

Author:
Thiago Santos

Method Summary
 int compare(Resume o1, Resume o2)
           
static StatusComparator 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 StatusComparator 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.