Package com.mooltiverse.oss.nyx.services
Enum GitProvider
- java.lang.Object
-
- java.lang.Enum<GitProvider>
-
- com.mooltiverse.oss.nyx.services.GitProvider
-
- All Implemented Interfaces:
Serializable
,Comparable<GitProvider>
public enum GitProvider extends Enum<GitProvider>
These are the constants representing the available services and their implementation classes.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>
getServiceClass()
Returns the class implementing the service.static GitProvider
valueOf(String name)
Returns the enum constant of this type with the specified name.static GitProvider[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GITHUB
public static final GitProvider GITHUB
The GitHub service provider.
-
GITLAB
public static final GitProvider GITLAB
The GitLab service provider.
-
-
Method Detail
-
values
public static GitProvider[] 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 (GitProvider c : GitProvider.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GitProvider 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
-
getServiceClass
public Class<?> getServiceClass()
Returns the class implementing the service.- Returns:
- the class implementing the service.
-
-