1 package civitas.result;
2
3 import org.springframework.beans.factory.annotation.Autowired;
4 import org.springframework.stereotype.Controller;
5
6 @Controller
7 public class Min {
8
9 @Autowired
10 CompareBeats compareBeats;
11
12 CandidatePair apply(final CandidatePair xr, final CandidatePair yr) {
13 if (compareBeats.apply(xr, yr) > 0) {
14 return yr;
15 }
16 return xr;
17 }
18 }