public enum KeyType extends Enum<KeyType>
Modifier and Type | Class and Description |
---|---|
protected static class |
KeyType.Constants |
Enum Constant and Description |
---|
CHAIN |
CHAIN_RESULT |
DEPLOYMENT |
DEPLOYMENT_RESULT |
JOB |
JOB_RESULT |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static Key |
getKeyFromString(String key)
Get the typed key from its string representation
|
static KeyType |
getKeyTypeFromString(String key)
Look at the provided key and work out what KeyType it is
|
Key |
toKey(String key)
Attempt to create the correct key for this KeyType with the provided key
|
static KeyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyType CHAIN
public static final KeyType CHAIN_RESULT
public static final KeyType DEPLOYMENT
public static final KeyType DEPLOYMENT_RESULT
public static final KeyType JOB
public static final KeyType JOB_RESULT
public static final KeyType UNKNOWN
public static KeyType[] values()
for (KeyType c : KeyType.values()) System.out.println(c);
public static KeyType 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 nullpublic static KeyType getKeyTypeFromString(String key)
key
- The string representation of a keypublic Key toKey(String key)
key
- The key as a string, e.g. "FOO-BAR"Copyright © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.