Enum Class CommitListMergeFilter

java.lang.Object
java.lang.Enum<CommitListMergeFilter>
com.atlassian.bitbucket.commit.CommitListMergeFilter
All Implemented Interfaces:
Serializable, Comparable<CommitListMergeFilter>, Constable

public enum CommitListMergeFilter extends Enum<CommitListMergeFilter>
A flag for indicating how merge commits should be filtered.
Since:
4.8
  • Enum Constant Details

  • Method Details

    • values

      public static CommitListMergeFilter[] 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

      public static CommitListMergeFilter valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • fromString

      public static CommitListMergeFilter fromString(@Nonnull String stringValue, @Nullable CommitListMergeFilter defaultValue)
      Coerces a string to a CommitListMergeFilter or returns the supplied default value if this is not possible.
      Parameters:
      stringValue - the string value of the commit list merge filter
      defaultValue - the default value to return if coercion is not possible
      Returns:
      a corresponding CommitListMergeFilter instance