Package com.wrapper.spotify.enums
Enum CopyrightType
- java.lang.Object
-
- java.lang.Enum<CopyrightType>
-
- com.wrapper.spotify.enums.CopyrightType
-
- All Implemented Interfaces:
Serializable,Comparable<CopyrightType>
public enum CopyrightType extends Enum<CopyrightType>
An enumeration of all possibleCopyrighttypes.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetType()Get theCopyrighttype as a string.static CopyrightTypekeyOf(String type)static CopyrightTypevalueOf(String name)Returns the enum constant of this type with the specified name.static CopyrightType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
C
public static final CopyrightType C
-
P
public static final CopyrightType P
-
-
Field Detail
-
type
public final String type
-
-
Method Detail
-
values
public static CopyrightType[] 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 (CopyrightType c : CopyrightType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CopyrightType 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
-
keyOf
public static CopyrightType keyOf(String type)
-
-