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.bycountryexactSearch by exact country.byidSearch by ID.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.
-
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
-
byid
public static final SearchMode byid
Search by ID.
-
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.
-
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
-
-