Enum Class RefChangeType

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

public enum RefChangeType extends Enum<RefChangeType>
Represents the different types of ref changes.
  • Enum Constant Details

  • Method Details

    • values

      public static RefChangeType[] 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 RefChangeType 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
    • fromId

      @Nonnull public static RefChangeType fromId(int id)
      Parameters:
      id - the unique identifier for the type (not its ordinal())
      Returns:
      the matching type
      Throws:
      IllegalArgumentException - if the specified ID does not match a type
    • getId

      public int getId()
      Returns:
      a unique identifier for this type which will never change