Enum DBBackedCustomDataStorage.Encoding
- java.lang.Object
-
- java.lang.Enum<DBBackedCustomDataStorage.Encoding>
-
- jetbrains.buildServer.serverSide.impl.DBBackedCustomDataStorage.Encoding
-
- All Implemented Interfaces:
Serializable
,Comparable<DBBackedCustomDataStorage.Encoding>
- Enclosing class:
- DBBackedCustomDataStorage
public static enum DBBackedCustomDataStorage.Encoding extends Enum<DBBackedCustomDataStorage.Encoding>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BASE64
BASE64GZIP
PLAIN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
decode(StringBuilder dataFromDB)
String
encode(String raw)
String
getPrefix()
static DBBackedCustomDataStorage.Encoding
valueOf(String name)
Returns the enum constant of this type with the specified name.static DBBackedCustomDataStorage.Encoding[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PLAIN
public static final DBBackedCustomDataStorage.Encoding PLAIN
-
BASE64
public static final DBBackedCustomDataStorage.Encoding BASE64
-
BASE64GZIP
public static final DBBackedCustomDataStorage.Encoding BASE64GZIP
-
-
Method Detail
-
values
public static DBBackedCustomDataStorage.Encoding[] 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 (DBBackedCustomDataStorage.Encoding c : DBBackedCustomDataStorage.Encoding.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DBBackedCustomDataStorage.Encoding 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
-
getPrefix
@NotNull public String getPrefix()
-
decode
@NotNull public static String decode(@NotNull StringBuilder dataFromDB)
-
-