Package io.github.coho04.githubapi.enums
Enum Class GHPackageType
- All Implemented Interfaces:
Serializable
,Comparable<GHPackageType>
,Constable
This enum represents the possible types of a GitHub package.
It provides a method for converting the package type to a string that can be used in a URL.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiontoURL()
Returns the string representation of the package type.static GHPackageType
Returns the enum constant of this class with the specified name.static GHPackageType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MAVEN
-
DOCKER
-
NPM
-
RUBYGEMS
-
NUGET
-
CONTAINER
-
-
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
-
toURL
Returns the string representation of the package type. The string is the name of the enum constant in lower case.- Returns:
- the string representation of the package type
-