Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package br.estatisticas;
- import br.modelos.Solve;
- import java.util.ArrayList;
- /**
- * Criado por Lucas Sousa em 21/10/2015.
- */
- public class StatisticsProvider {
- private ArrayList<Solve> solves;
- public StatisticsProvider(ArrayList<Solve> solves) {
- this.solves = solves;
- }
- public long getBest5Value() {
- return new Best5(solves).getBest5Value();
- }
- public long getBest12Value() {
- return new Best12(solves).getBest12Value();
- }
- public ArrayList<String> getBest12Solves() {
- return new Best12(solves).getBest12Solves();
- }
- public ArrayList<String> getBest5Solves() {
- return new Best5(solves).getBest5Solves();
- }
- public long getCurrent5Value() {
- return new Current5(solves).getCurrent5Value();
- }
- public ArrayList<String> getCurrent5Solves() {
- return new Current5(solves).getCurrent5Solves();
- }
- public long getCurrent12Value() {
- return new Current12(solves).getCurrent12Value();
- }
- public ArrayList<String> getCurrent12Solves() {
- return new Current12(solves).getCurrent12Solves();
- }
- public long getOverallMeanValue() {
- return new OverallMean(solves).getOverallMeanValue();
- }
- public long getOverallAverageValue() {
- return new OverallAverage(solves).getOverallAverage();
- }
- public long getBestValue() {
- return new Best(solves).getBestValue();
- }
- public String getBestSolve() {
- return new Best(solves).getBestSolve();
- }
- public long getWorstValue() {
- return new Worst(solves).getWorstValue();
- }
- public String getWorstSolve() {
- return new Worst(solves).getWorstSolve();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement