Package org.localify.common
Enum Class ArtistCityExplanation
- All Implemented Interfaces:
Serializable,Comparable<ArtistCityExplanation>,Constable
Explains the relationship between an artist and a city.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe artist was born in this city.The artist is currently based in this city.The artist died in this city.The artist's band was disbanded in this city.The artist's band was formed in this city.The artist's hometown is this city. -
Method Summary
Modifier and TypeMethodDescriptionstatic ArtistCityExplanationCreates an ArtistCityExplanation from a string value.static ArtistCityExplanationReturns the enum constant of this class with the specified name.static ArtistCityExplanation[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BORN
The artist was born in this city. -
DIED
The artist died in this city. -
CURRENTLY
The artist is currently based in this city. -
FORMED
The artist's band was formed in this city. -
DISBANDED
The artist's band was disbanded in this city. -
HOMETOWN
The artist's hometown is this city.
-
-
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
-
fromValue
Creates an ArtistCityExplanation from a string value. This is used for deserializing from JSON.- Parameters:
value- The string value.- Returns:
- The corresponding ArtistCityExplanation.
-