Added a method to return a single country

This commit is contained in:
Omertron
2010-10-07 10:32:16 +00:00
parent ce52629e8c
commit f4f64b5962
@@ -54,6 +54,18 @@ public class MovieDB extends ModelTools {
private List<Person> people = new ArrayList<Person>();
private List<Artwork> artwork = new ArrayList<Artwork>();
/**
* Just return the first country
* @return
*/
public String getCountry() {
if (!countries.isEmpty()) {
Country country = countries.get(0);
return country.getName();
}
return UNKNOWN;
}
public String getPopularity() {
return popularity;
}