Enum Class BambooEntityType

java.lang.Object
java.lang.Enum<BambooEntityType>
com.atlassian.bamboo.core.BambooEntityType
All Implemented Interfaces:
Serializable, Comparable<BambooEntityType>, Constable

public enum BambooEntityType extends Enum<BambooEntityType>
An enum containing types of Bamboo entities which can be assigned their unique BambooEntityOid.
  • Enum Constant Details

  • Method Details

    • values

      public static BambooEntityType[] 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 BambooEntityType 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
    • getTypeId

      public int getTypeId()
      Returns the type ID of this enum constant. The ID is unique for each element, but is not related to Enum.ordinal.
    • fromTypeId

      @NotNull public static @NotNull BambooEntityType fromTypeId(int typeId)
      Obtains an enum constant of BambooEntityType by type ID.
      Parameters:
      typeId - unique type ID; not related to Enum.ordinal()
      Returns:
      BambooEntityType instance assigned to the given ID.
      Throws:
      IllegalArgumentException - if no BambooEntityType with the given ID could be found.