View Javadoc
1   package civitas.common.tallystate;
2   
3   import org.springframework.stereotype.Controller;
4   
5   @Controller
6   public class RecordBeat {
7   	public void apply(final TallyState that, final int i, final int j) {
8   		if (i < 0 || i >= that.size || j < 0 || j >= that.size || i == j) {
9   			throw new IllegalArgumentException("first candidate is illegal");
10  		}
11  
12  		that.matrix[i][j]++;
13  	}
14  }