Newer
Older
AlgebraicDataflowArchitectureModel / AlgebraicDataflowArchitectureModel / src / experiment / pull / Total.java
yoichiro on 2 May 2020 237 bytes paymentがおかしい
package experiment.pull;

public class Total {
	private History history;
	public Total(History history) {
		this.history = history;
	}
	public int getTotal() {
		return history.getHistory().stream().mapToInt(x->x).sum();
	}
}