Package org.disq_bio.disq
Enum TabixIndexWriteOption
- java.lang.Object
-
- java.lang.Enum<TabixIndexWriteOption>
-
- org.disq_bio.disq.TabixIndexWriteOption
-
- All Implemented Interfaces:
Serializable,Comparable<TabixIndexWriteOption>,WriteOption
public enum TabixIndexWriteOption extends Enum<TabixIndexWriteOption> implements WriteOption
An option for for enabling or disabling writing tabix files. Disabled by default.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TabixIndexWriteOptionfromBoolean(boolean writeTabix)Turn a boolean into aTabixIndexWriteOption.static StringgetIndexExtension()static TabixIndexWriteOptionvalueOf(String name)Returns the enum constant of this type with the specified name.static TabixIndexWriteOption[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENABLE
public static final TabixIndexWriteOption ENABLE
-
DISABLE
public static final TabixIndexWriteOption DISABLE
-
-
Method Detail
-
values
public static TabixIndexWriteOption[] 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 (TabixIndexWriteOption c : TabixIndexWriteOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TabixIndexWriteOption 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
-
fromBoolean
public static TabixIndexWriteOption fromBoolean(boolean writeTabix)
Turn a boolean into aTabixIndexWriteOption.- Parameters:
writeTabix- if writing tabix files is enabled- Returns:
- a
TabixIndexWriteOption
-
getIndexExtension
public static String getIndexExtension()
- Returns:
- the extension for tabix files.
-
-