Package org.kohsuke.github
Enum GHRepository.Visibility
- java.lang.Object
-
- java.lang.Enum<GHRepository.Visibility>
-
- org.kohsuke.github.GHRepository.Visibility
-
- All Implemented Interfaces:
Serializable
,Comparable<GHRepository.Visibility>
- Enclosing class:
- GHRepository
public static enum GHRepository.Visibility extends Enum<GHRepository.Visibility>
Visibility of a repository.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GHRepository.Visibility
from(String value)
From.String
toString()
To string.static GHRepository.Visibility
valueOf(String name)
Returns the enum constant of this type with the specified name.static GHRepository.Visibility[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PUBLIC
public static final GHRepository.Visibility PUBLIC
The public.
-
INTERNAL
public static final GHRepository.Visibility INTERNAL
The internal.
-
PRIVATE
public static final GHRepository.Visibility PRIVATE
The private.
-
UNKNOWN
public static final GHRepository.Visibility UNKNOWN
Placeholder for unexpected data values. This avoids throwing exceptions during data binding or reading when the list of allowed values returned from GitHub is expanded. Do not pass this value to any methods. If this value is returned during a request, check the log output and report an issue for the missing value.
-
-
Method Detail
-
values
public static GHRepository.Visibility[] 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 (GHRepository.Visibility c : GHRepository.Visibility.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GHRepository.Visibility 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
-
from
public static GHRepository.Visibility from(String value)
From.- Parameters:
value
- the value- Returns:
- the visibility
-
toString
public String toString()
To string.- Overrides:
toString
in classEnum<GHRepository.Visibility>
- Returns:
- the string
-
-