Package org.kohsuke.github
Enum GHRepository.ForkSort
- java.lang.Object
-
- java.lang.Enum<GHRepository.ForkSort>
-
- org.kohsuke.github.GHRepository.ForkSort
-
- All Implemented Interfaces:
Serializable,Comparable<GHRepository.ForkSort>
- Enclosing class:
- GHRepository
public static enum GHRepository.ForkSort extends Enum<GHRepository.ForkSort>
Sort orders for listing forks.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NEWESTThe newest.OLDESTThe oldest.STARGAZERSThe stargazers.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GHRepository.ForkSortvalueOf(String name)Returns the enum constant of this type with the specified name.static GHRepository.ForkSort[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEWEST
public static final GHRepository.ForkSort NEWEST
The newest.
-
OLDEST
public static final GHRepository.ForkSort OLDEST
The oldest.
-
STARGAZERS
public static final GHRepository.ForkSort STARGAZERS
The stargazers.
-
-
Method Detail
-
values
public static GHRepository.ForkSort[] 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.ForkSort c : GHRepository.ForkSort.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.ForkSort 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
-
-