com.atlassian.bamboo.build
Class BuildCompletedDateComparator

java.lang.Object
  extended by com.atlassian.bamboo.build.BuildCompletedDateComparator
All Implemented Interfaces:
java.util.Comparator<BuildResultsSummary>

public class BuildCompletedDateComparator
extends java.lang.Object
implements java.util.Comparator<BuildResultsSummary>

Sorts the BuildResultsSummary using the build completed date if available, or build date if no completed date in ascending order


Constructor Summary
BuildCompletedDateComparator()
           
 
Method Summary
 int compare(BuildResultsSummary r1, BuildResultsSummary r2)
           
static BuildCompletedDateComparator getInstance()
           
 
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

BuildCompletedDateComparator

public BuildCompletedDateComparator()
Method Detail

compare

public int compare(BuildResultsSummary r1,
                   BuildResultsSummary r2)
Specified by:
compare in interface java.util.Comparator<BuildResultsSummary>

getInstance

public static BuildCompletedDateComparator getInstance()


Copyright © 2010 Atlassian. All Rights Reserved.