diff options
author | Ben Burwell <ben.burwell@trifecta.com> | 2016-11-19 22:55:10 -0500 |
---|---|---|
committer | Ben Burwell <ben.burwell@trifecta.com> | 2016-11-19 22:55:10 -0500 |
commit | a448320cc4661f9304a8323d6c0e05f1f0fee2b3 (patch) | |
tree | 274310efc18316c48e0911a428a0f0bce7899033 /src/main/java/com/benburwell/planes/data/Airport.java | |
parent | 70d15df43ea0d57c3fe237211098645733048c45 (diff) |
Use resources for data (for now)
At some point, it would be nice for this to be more configurable
Diffstat (limited to 'src/main/java/com/benburwell/planes/data/Airport.java')
-rw-r--r-- | src/main/java/com/benburwell/planes/data/Airport.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/benburwell/planes/data/Airport.java b/src/main/java/com/benburwell/planes/data/Airport.java index 92e43bc..ab16248 100644 --- a/src/main/java/com/benburwell/planes/data/Airport.java +++ b/src/main/java/com/benburwell/planes/data/Airport.java @@ -5,7 +5,7 @@ import org.apache.commons.csv.CSVRecord; /** * Created by ben on 11/19/16. */ -public class Airport { +public class Airport extends AbstractCSVReader { private int id; private String ident; private String type; @@ -25,7 +25,7 @@ public class Airport { private String wikipediaLink; private String keywords; - public Airport(CSVRecord record) { + public void readRecord(CSVRecord record) { this.setId(Integer.valueOf(record.get("id"))); this.setIdent(record.get("ident")); this.setType(record.get("type")); |