Package jenkins.plugins.jobcacher
Enum ArbitraryFileCache.CompressionMethod
- java.lang.Object
-
- java.lang.Enum<ArbitraryFileCache.CompressionMethod>
-
- jenkins.plugins.jobcacher.ArbitraryFileCache.CompressionMethod
-
- All Implemented Interfaces:
Serializable
,Comparable<ArbitraryFileCache.CompressionMethod>
- Enclosing class:
- ArbitraryFileCache
public static enum ArbitraryFileCache.CompressionMethod extends Enum<ArbitraryFileCache.CompressionMethod>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ArbitraryFileCacheStrategy
getCacheStrategy()
boolean
isSupported()
static ArbitraryFileCache.CompressionMethod
valueOf(String name)
Returns the enum constant of this type with the specified name.static ArbitraryFileCache.CompressionMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final ArbitraryFileCache.CompressionMethod NONE
-
ZIP
public static final ArbitraryFileCache.CompressionMethod ZIP
-
TARGZ
public static final ArbitraryFileCache.CompressionMethod TARGZ
-
TARGZ_BEST_SPEED
public static final ArbitraryFileCache.CompressionMethod TARGZ_BEST_SPEED
-
TAR
public static final ArbitraryFileCache.CompressionMethod TAR
-
TAR_ZSTD
public static final ArbitraryFileCache.CompressionMethod TAR_ZSTD
-
-
Method Detail
-
values
public static ArbitraryFileCache.CompressionMethod[] 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 (ArbitraryFileCache.CompressionMethod c : ArbitraryFileCache.CompressionMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ArbitraryFileCache.CompressionMethod 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
-
isSupported
public boolean isSupported()
-
getCacheStrategy
public ArbitraryFileCacheStrategy getCacheStrategy()
-
-