Enum TapeSerializationContext
- java.lang.Object
-
- java.lang.Enum<TapeSerializationContext>
-
- com.atlassian.bamboo.cluster.tape.TapeSerializationContext
-
- All Implemented Interfaces:
Serializable
,AutoCloseable
,Comparable<TapeSerializationContext>
public enum TapeSerializationContext extends Enum<TapeSerializationContext> implements AutoCloseable
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTEXT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
static TapeSerializationContext
create()
static TapeSerializationContext
valueOf(String name)
Returns the enum constant of this type with the specified name.static TapeSerializationContext[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONTEXT
public static final TapeSerializationContext CONTEXT
-
-
Method Detail
-
values
public static TapeSerializationContext[] 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 (TapeSerializationContext c : TapeSerializationContext.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TapeSerializationContext 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
-
create
public static TapeSerializationContext create()
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
-