enterprises.orbital.impl.evexmlapi.eve.FacWarTopStats Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eve-xml-api Show documentation
Show all versions of eve-xml-api Show documentation
Library to interact with EVE XML API servers
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 extends E> statsList) {
stats.put(statsList.getName(), statsList);
}
@Override
@SuppressWarnings("unchecked")
public List getKillsYesterday() {
List result = new ArrayList();
result.addAll((Collection extends KE>) stats.get("KillsYesterday"));
return result;
}
@Override
@SuppressWarnings("unchecked")
public List getKillsLastWeek() {
List result = new ArrayList();
result.addAll((Collection extends KE>) stats.get("KillsLastWeek"));
return result;
}
@Override
@SuppressWarnings("unchecked")
public List getKillsTotal() {
List result = new ArrayList();
result.addAll((Collection extends KE>) stats.get("KillsTotal"));
return result;
}
@Override
@SuppressWarnings("unchecked")
public List getVictoryPointsYesterday() {
List result = new ArrayList();
result.addAll((Collection extends VPE>) stats.get("VictoryPointsYesterday"));
return result;
}
@Override
@SuppressWarnings("unchecked")
public List getVictoryPointsLastWeek() {
List result = new ArrayList();
result.addAll((Collection extends VPE>) stats.get("VictoryPointsLastWeek"));
return result;
}
@Override
@SuppressWarnings("unchecked")
public List getVictoryPointsTotal() {
List result = new ArrayList();
result.addAll((Collection extends VPE>) stats.get("VictoryPointsTotal"));
return result;
}
}