Package de.chojo.universalis.entities
Enum Class City
- All Implemented Interfaces:
Serializable
,Comparable<City>
,Constable
An enum representing cities which can have retainers.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCrystariumGridaniaIshgardKuganeLimsa LominsaOld SharlayanTuliyollalUl'dahUnknown city -
Method Summary
Modifier and TypeMethodDescriptioncityName()
Name of the citystatic City
fromId
(int id) Get a city by its idstatic City
Get a city by its nameint
id()
The city id.static City
Returns the enum constant of this class with the specified name.static City[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Unknown city -
LIMSA_LOMINSA
Limsa Lominsa -
GRIDANIA
Gridania -
UL_DAH
Ul'dah -
ISHGARD
Ishgard -
KUGANE
Kugane -
CRYSTARIUM
Crystarium -
OLD_SHARLAYAN
Old Sharlayan -
TULIYOLLAL
Tuliyollal
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromId
Get a city by its id- Parameters:
id
- id- Returns:
- city
- Throws:
IllegalArgumentException
- when id is invalid
-
fromName
Get a city by its name- Parameters:
name
- name- Returns:
- city
- Throws:
IllegalArgumentException
- when name is invalid
-
cityName
Name of the city- Returns:
- name
-
id
public int id()The city id.- Returns:
- id
-