Class ChainRemainingTimeComparator
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.ChainRemainingTimeComparator
-
public class ChainRemainingTimeComparator extends Object
-
-
Constructor Summary
Constructors Constructor Description ChainRemainingTimeComparator(BuildDependencyGraph originalChain, BuildDurationCalculator buildDurationCalculator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(BuildDependencyGraph anotherChain)
Returns -1 if original chain has smaller remaining time and 1 otherwise.
-
-
-
Constructor Detail
-
ChainRemainingTimeComparator
public ChainRemainingTimeComparator(@NotNull BuildDependencyGraph originalChain, @NotNull BuildDurationCalculator buildDurationCalculator)
-
-
Method Detail
-
compareTo
public int compareTo(@NotNull BuildDependencyGraph anotherChain)
Returns -1 if original chain has smaller remaining time and 1 otherwise. Compares estimates in the same nodes as in original chain, i.e. if anotherChain is bigger, only part intersecting with original chain is considered.- Parameters:
anotherChain
-- Returns:
-
-