Lines Matching full:city
30 * A class representing a city, with an associated position, time zone name,
33 public class City implements Comparable<City> {
35 private static Map<String,City> cities = new HashMap<String,City>();
36 private static City[] citiesByRawOffset;
46 * Loads the city database. The cities must be stored in order by raw
52 citiesByRawOffset = new City[numCities];
87 City city = new City(name, tzid, rawOffset,
90 cities.put(name, city);
91 citiesByRawOffset[i] = city;
98 public static City[] getCitiesByName() {
99 City[] ocities = new City[cities.size()];
100 Iterator<City> iter = cities.values().iterator();
114 public static City[] getCitiesByOffset() {
115 City[] ocities = new City[cities.size()];
116 Iterator<City> iter = cities.values().iterator();
124 City c1 = (City)o1;
125 City c2 = (City)o2;
148 public static City[] getCitiesByRawOffset() {
155 public static Iterator<City> iterator() {
167 * Constructs a city with the given name, time zone name, raw offset,
170 public City(String name, String timeZoneID,
224 * Returns this city's offset from UTC, taking summer/daylight savigns
236 * Compares this city to another by name.
238 public int compareTo(City o) {