Package de.sonallux.spotify.core.model
Enum SpotifyWebApiEndpoint.ParameterLocation
- java.lang.Object
-
- java.lang.Enum<SpotifyWebApiEndpoint.ParameterLocation>
-
- de.sonallux.spotify.core.model.SpotifyWebApiEndpoint.ParameterLocation
-
- All Implemented Interfaces:
Serializable,Comparable<SpotifyWebApiEndpoint.ParameterLocation>
- Enclosing class:
- SpotifyWebApiEndpoint
public static enum SpotifyWebApiEndpoint.ParameterLocation extends Enum<SpotifyWebApiEndpoint.ParameterLocation>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SpotifyWebApiEndpoint.ParameterLocationvalueOf(String name)Returns the enum constant of this type with the specified name.static SpotifyWebApiEndpoint.ParameterLocation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PATH
public static final SpotifyWebApiEndpoint.ParameterLocation PATH
-
HEADER
public static final SpotifyWebApiEndpoint.ParameterLocation HEADER
-
QUERY
public static final SpotifyWebApiEndpoint.ParameterLocation QUERY
-
BODY
public static final SpotifyWebApiEndpoint.ParameterLocation BODY
-
-
Method Detail
-
values
public static SpotifyWebApiEndpoint.ParameterLocation[] 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 (SpotifyWebApiEndpoint.ParameterLocation c : SpotifyWebApiEndpoint.ParameterLocation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SpotifyWebApiEndpoint.ParameterLocation 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
-
-