All Downloads are FREE. Search and download functionalities are using the official Maven repository.

enterprises.orbital.impl.evexmlapi.eve.FacWarTopStats Maven / Gradle / Ivy

There is a newer version: 2.4.0
Show newest version
package enterprises.orbital.impl.evexmlapi.eve;

import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import enterprises.orbital.evexmlapi.eve.IFacWarTopStats;
import enterprises.orbital.evexmlapi.eve.IKillStat;
import enterprises.orbital.evexmlapi.eve.IVictoryPointStat;

public abstract class FacWarTopStats
    implements IFacWarTopStats {
  private final Map> stats = new HashMap>();

  public void addStatsList(StatsList statsList) {
    stats.put(statsList.getName(), statsList);
  }

  @Override
  @SuppressWarnings("unchecked")
  public List getKillsYesterday() {
    List result = new ArrayList();
    result.addAll((Collection) stats.get("KillsYesterday"));
    return result;
  }

  @Override
  @SuppressWarnings("unchecked")
  public List getKillsLastWeek() {
    List result = new ArrayList();
    result.addAll((Collection) stats.get("KillsLastWeek"));
    return result;
  }

  @Override
  @SuppressWarnings("unchecked")
  public List getKillsTotal() {
    List result = new ArrayList();
    result.addAll((Collection) stats.get("KillsTotal"));
    return result;
  }

  @Override
  @SuppressWarnings("unchecked")
  public List getVictoryPointsYesterday() {
    List result = new ArrayList();
    result.addAll((Collection) stats.get("VictoryPointsYesterday"));
    return result;
  }

  @Override
  @SuppressWarnings("unchecked")
  public List getVictoryPointsLastWeek() {
    List result = new ArrayList();
    result.addAll((Collection) stats.get("VictoryPointsLastWeek"));
    return result;
  }

  @Override
  @SuppressWarnings("unchecked")
  public List getVictoryPointsTotal() {
    List result = new ArrayList();
    result.addAll((Collection) stats.get("VictoryPointsTotal"));
    return result;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy