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