If you think the Android project AndroidPlaces listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
/*
* Copyright (C) 2014 Brian Lee//www.java2s.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/package com.tigerpenguin.places.model;
import com.fasterxml.jackson.annotation.JsonValue;
publicenum Language {
ARABIC("ar"),
BASQUE("eu"),
BULGARIAN("bg"),
BENGALI("bn"),
CATALAN("ca"),
CZECH("cs"),
DANISH("da"),
GERMAN("de"),
GREEK("el"),
ENGLISH("en"),
ENGLISH_AUSTRALIAN("en-AU"),
ENGLISH_GREAT_BRITAIN("en-GB"),
SPANISH("es"),
FARSI("fa"),
FINNISH("fi"),
FILIPINO("fil"),
FRENCH("fr"),
GALICIAN("gl"),
GUJARATI("gu"),
HINDI("hi"),
CROATIAN("hr"),
HUNGARIAN("hu"),
INDONESIAN("id"),
ITALIAN("it"),
HEBREW("iw"),
JAPANESE("ja"),
KANNADA("kn"),
KOREAN("ko"),
LITHUANIAN("lt"),
LATVIAN("lv"),
MALAYALAM("ml"),
MARATHI("mr"),
DUTCH("nl"),
NORWEGIAN_NYNORSK("nn"),
NORWEGIAN("no"),
ORIYA("or"),
POLISH("pl"),
PORTUGUESE("pt"),
PORTUGUESE_BRAZIL("pt-BR"),
PORTUGUESE_PORTUGAL("pt-PT"),
ROMANSCH("rm"),
ROMANIAN("ro"),
RUSSIAN("ru"),
SLOVAK("sk"),
SLOVENIAN("sl"),
SERBIAN("sr"),
SWEDISH("sv"),
TAGALOG("tl"),
TAMIL("ta");
privatefinal String mCode;
private Language(String code) {
mCode = code;
}
@JsonValue
public String getCode() {
return mCode;
}
}