View Javadoc
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 Max {
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 xr;
15  		}
16  		return yr;
17  	}
18  }