Package org.kohsuke.github
Enum GHRepositorySearchBuilder.Fork
- java.lang.Object
-
- java.lang.Enum<GHRepositorySearchBuilder.Fork>
-
- org.kohsuke.github.GHRepositorySearchBuilder.Fork
-
- All Implemented Interfaces:
Serializable,Comparable<GHRepositorySearchBuilder.Fork>
- Enclosing class:
- GHRepositorySearchBuilder
public static enum GHRepositorySearchBuilder.Fork extends Enum<GHRepositorySearchBuilder.Fork>
The enum for Fork search mode
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FORKS_ONLYSearch only in forks with more stars than the parent repository.PARENT_AND_FORKSSearch in the parent repository and in forks with more stars than the parent repository.PARENT_ONLY(Default) Search only the parent repository.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()static GHRepositorySearchBuilder.ForkvalueOf(String name)Returns the enum constant of this type with the specified name.static GHRepositorySearchBuilder.Fork[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PARENT_AND_FORKS
public static final GHRepositorySearchBuilder.Fork PARENT_AND_FORKS
Search in the parent repository and in forks with more stars than the parent repository. Forks with the same or fewer stars than the parent repository are still ignored.
-
FORKS_ONLY
public static final GHRepositorySearchBuilder.Fork FORKS_ONLY
Search only in forks with more stars than the parent repository. The parent repository is ignored. If no forks have more stars than the parent, no results will be returned.
-
PARENT_ONLY
public static final GHRepositorySearchBuilder.Fork PARENT_ONLY
(Default) Search only the parent repository. Forks are ignored.
-
-
Method Detail
-
values
public static GHRepositorySearchBuilder.Fork[] 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 (GHRepositorySearchBuilder.Fork c : GHRepositorySearchBuilder.Fork.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GHRepositorySearchBuilder.Fork 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
-
toString
public String toString()
- Overrides:
toStringin classEnum<GHRepositorySearchBuilder.Fork>
-
-