You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
majority-judgment-library-java/src/main/java/fr/mieuxvoter/mj/ProposalTallyInterface.java

23 lines
508 B

package fr.mieuxvoter.mj;
public interface ProposalTallyInterface {
/**
* The amount of judgments received for each Grade, from "worst" Grade to "best" Grade.
*/
public Long[] getTally();
/**
* Homemade factory to skip the clone() shenanigans.
* Used by the score calculus.
*/
public ProposalTallyInterface duplicate();
/**
* Move judgments that were fromGrade into intoGrade.
* Used by the score calculus.
*/
public void moveJudgments(Integer fromGrade, Integer intoGrade);
}