Package org.kohsuke.github
Enum GHCommitSearchBuilder.Sort
- java.lang.Object
-
- java.lang.Enum<GHCommitSearchBuilder.Sort>
-
- org.kohsuke.github.GHCommitSearchBuilder.Sort
-
- All Implemented Interfaces:
Serializable
,Comparable<GHCommitSearchBuilder.Sort>
- Enclosing class:
- GHCommitSearchBuilder
public static enum GHCommitSearchBuilder.Sort extends Enum<GHCommitSearchBuilder.Sort>
The enum Sort.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTHOR_DATE
The author date.COMMITTER_DATE
The committer date.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GHCommitSearchBuilder.Sort
valueOf(String name)
Returns the enum constant of this type with the specified name.static GHCommitSearchBuilder.Sort[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTHOR_DATE
public static final GHCommitSearchBuilder.Sort AUTHOR_DATE
The author date.
-
COMMITTER_DATE
public static final GHCommitSearchBuilder.Sort COMMITTER_DATE
The committer date.
-
-
Method Detail
-
values
public static GHCommitSearchBuilder.Sort[] 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 (GHCommitSearchBuilder.Sort c : GHCommitSearchBuilder.Sort.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GHCommitSearchBuilder.Sort 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
-
-