public enum CapabilitySource extends Enum<CapabilitySource> implements Comparable<CapabilitySource>
Enum Constant and Description |
---|
AUTO_DETECTION
Automatically detected
|
PROPERTIES_FILE
Defined in bamboo-capabilities.properties file
|
SHARED
Shared remote capability
|
UI
Added manually by user in UI
|
Modifier and Type | Method and Description |
---|---|
static @Nullable CapabilitySource |
forName(@NotNull String name)
Return a capability source for the given name.
|
int |
getMask()
Get bits that represents this source
|
static CapabilitySource |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CapabilitySource[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
compareTo
public static final CapabilitySource UI
public static final CapabilitySource PROPERTIES_FILE
public static final CapabilitySource AUTO_DETECTION
public static final CapabilitySource SHARED
public static CapabilitySource[] values()
for (CapabilitySource c : CapabilitySource.values()) System.out.println(c);
public static CapabilitySource valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null@Nullable public static @Nullable CapabilitySource forName(@NotNull @NotNull String name)
name
- name of the capability sourcepublic int getMask()
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.