Skip to content

Commit

Permalink
more results
Browse files Browse the repository at this point in the history
  • Loading branch information
angryziber committed May 26, 2011
1 parent 9b4272d commit 8dfe2aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
Binary file modified results.ods
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Iterator;
import java.util.List;
import java.util.Map;

Expand All @@ -26,16 +27,10 @@ final Athlete createAthlete(List<String> athleteData) {
a.setResult(new Result());

Map<DecathlonEvent, String> results = a.getResult().getResults();
results.put(DecathlonEvent.M_100, athleteData.get(3));
results.put(DecathlonEvent.LONG_JUMP, athleteData.get(4));
results.put(DecathlonEvent.SHOT_PUT, athleteData.get(5));
results.put(DecathlonEvent.HIGH_JUMP, athleteData.get(6));
results.put(DecathlonEvent.M_400, athleteData.get(7));
results.put(DecathlonEvent.HURDLES_110, athleteData.get(8));
results.put(DecathlonEvent.DISCUS_THROW, athleteData.get(9));
results.put(DecathlonEvent.POLE_VAULT, athleteData.get(10));
results.put(DecathlonEvent.JAVELIN_THROW, athleteData.get(11));
results.put(DecathlonEvent.M_1500, athleteData.get(12));
Iterator<String> i = athleteData.iterator();
for (DecathlonEvent event : DecathlonEvent.values()) {
results.put(event, i.next());
}

CsvHolder.putCsvLine(a, athleteData);
return a;
Expand Down

0 comments on commit 8dfe2aa

Please sign in to comment.