Package com.atlassian.bitbucket.pull
Enum Class PullRequestMergeOutcome
- All Implemented Interfaces:
Serializable
,Comparable<PullRequestMergeOutcome>
,Constable
Enumerates the possible
outcomes
for attempting to merge a pull request.- Since:
- 4.10
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIndicates the two branches on thepull request
merged without conflicts.Indicates the two branches on thepull request
were merged but conflicts were encountered.Indicates the system is unable to determine the mergeability of thepull request
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
static PullRequestMergeOutcome
Returns the enum constant of this class with the specified name.static PullRequestMergeOutcome[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLEAN
Indicates the two branches on thepull request
merged without conflicts. -
CONFLICTED
Indicates the two branches on thepull request
were merged but conflicts were encountered. -
UNKNOWN
Indicates the system is unable to determine the mergeability of thepull request
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
isMergeable
public boolean isMergeable()
-