Package de.sfuhrm.radiobrowser4j
Enum SearchMode
- java.lang.Object
-
- java.lang.Enum<SearchMode>
-
- de.sfuhrm.radiobrowser4j.SearchMode
-
- All Implemented Interfaces:
Serializable,Comparable<SearchMode>
public enum SearchMode extends Enum<SearchMode>
The mode to search for.- Author:
- Stephan Fuhrmann
- See Also:
RadioBrowser.listStationsBy(Paging, SearchMode, String, ListParameter...)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BYCODECSearch by codec.BYCODECEXACTSearch by exact codec.BYCOUNTRYSearch by country.BYCOUNTRYCODEEXACTSearch by ISO 3166-1 alpha-2 country code.BYCOUNTRYEXACTSearch by exact country.BYLANGUAGESearch by language.BYLANGUAGEEXACTSearch by exact language.BYNAMESearch by name.BYNAMEEXACTSearch by exact name.BYSTATESearch by state.BYSTATEEXACTSearch by exact state.BYTAGSearch by tag.BYTAGEXACTSearch by exact tag.BYUUIDSearch by UUID.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SearchModevalueOf(String name)Returns the enum constant of this type with the specified name.static SearchMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BYUUID
public static final SearchMode BYUUID
Search by UUID.
-
BYNAME
public static final SearchMode BYNAME
Search by name.
-
BYNAMEEXACT
public static final SearchMode BYNAMEEXACT
Search by exact name.
-
BYCODEC
public static final SearchMode BYCODEC
Search by codec.
-
BYCODECEXACT
public static final SearchMode BYCODECEXACT
Search by exact codec.
-
BYCOUNTRY
public static final SearchMode BYCOUNTRY
Search by country.
-
BYCOUNTRYEXACT
public static final SearchMode BYCOUNTRYEXACT
Search by exact country.
-
BYCOUNTRYCODEEXACT
public static final SearchMode BYCOUNTRYCODEEXACT
Search by ISO 3166-1 alpha-2 country code.
-
BYSTATE
public static final SearchMode BYSTATE
Search by state.
-
BYSTATEEXACT
public static final SearchMode BYSTATEEXACT
Search by exact state.
-
BYLANGUAGE
public static final SearchMode BYLANGUAGE
Search by language.
-
BYLANGUAGEEXACT
public static final SearchMode BYLANGUAGEEXACT
Search by exact language.
-
BYTAG
public static final SearchMode BYTAG
Search by tag.
-
BYTAGEXACT
public static final SearchMode BYTAGEXACT
Search by exact tag.
-
-
Method Detail
-
values
public static SearchMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SearchMode c : SearchMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SearchMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-