/*
* -----------------------------------------------------------------------
* Copyright © 2013-2014 Meno Hochschild, <http://www.menodata.de/>
* -----------------------------------------------------------------------
* This file (INDIAN.java) is part of project Time4J.
*
* Time4J is free software: You can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either version 2.1 of the License, or
* (at your option) any later version.
*
* Time4J is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Time4J. If not, see <http://www.gnu.org/licenses/>.
* -----------------------------------------------------------------------
*/
package net.time4j.tz.olson;
/**
* <p>Contains all standard timezone IDs in Indian Ocean. </p>
*/
/*[deutsch]
* <p>Enthält alle Standard-Zeitzonen-IDs im Indischen Ozean. </p>
*/
public enum INDIAN
implements StdZoneIdentifier {
//~ Statische Felder/Initialisierungen --------------------------------
ANTANANARIVO("Antananarivo", "MG"),
CHAGOS("Chagos", "IO"),
CHRISTMAS("Christmas", "CX"),
COCOS("Cocos", "CC"),
COMORO("Comoro", "KM"),
KERGUELEN("Kerguelen", "TF"),
MAHE("Mahe", "SC"),
MALDIVES("Maldives", "MV"),
MAURITIUS("Mauritius", "MU"),
MAYOTTE("Mayotte", "YT"),
REUNION("Reunion", "RE");
//~ Instanzvariablen --------------------------------------------------
private final String id;
private final String city;
private final String country;
//~ Konstruktoren -----------------------------------------------------
private INDIAN(
String city,
String country
) {
this.id = "Indian/" + city;
this.city = city;
this.country = country;
}
//~ Methoden ----------------------------------------------------------
@Override
public String canonical() {
return this.id;
}
@Override
public String getRegion() {
return "Indian";
}
@Override
public String getCity() {
return this.city;
}
@Override
public String getCountry() {
return this.country;
}
}