Enum ActiveInstanceAdjustmentType
- java.lang.Object
-
- java.lang.Enum<ActiveInstanceAdjustmentType>
-
- com.atlassian.bamboo.agent.elastic.schedule.ActiveInstanceAdjustmentType
-
- All Implemented Interfaces:
Serializable,Comparable<ActiveInstanceAdjustmentType>
public enum ActiveInstanceAdjustmentType extends Enum<ActiveInstanceAdjustmentType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AT_LEASTEQUALSNO_MORE_THAN
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static @Nullable ActiveInstanceAdjustmentTypegetActiveInstanceAdjustmentType(long databaseId)abstract intgetAdjustmentNumber(int from, int to)longgetDatabaseId()static ActiveInstanceAdjustmentTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ActiveInstanceAdjustmentType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EQUALS
public static final ActiveInstanceAdjustmentType EQUALS
-
AT_LEAST
public static final ActiveInstanceAdjustmentType AT_LEAST
-
NO_MORE_THAN
public static final ActiveInstanceAdjustmentType NO_MORE_THAN
-
-
Method Detail
-
values
public static ActiveInstanceAdjustmentType[] 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 (ActiveInstanceAdjustmentType c : ActiveInstanceAdjustmentType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ActiveInstanceAdjustmentType 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
-
getDatabaseId
public long getDatabaseId()
-
getAdjustmentNumber
public abstract int getAdjustmentNumber(int from, int to)
-
getActiveInstanceAdjustmentType
@Nullable public static @Nullable ActiveInstanceAdjustmentType getActiveInstanceAdjustmentType(long databaseId)
-
-