Package htsjdk.variant.vcf
Enum Class VCFHeaderVersion
- All Implemented Interfaces:
Serializable
,Comparable<VCFHeaderVersion>
,Constable
information that identifies each header version
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic VCFHeaderVersion
getHeaderVersion
(String versionLine) boolean
isAtLeastAsRecentAs
(VCFHeaderVersion target) Determines whether this version is at least as recent as a given versionstatic boolean
isFormatString
(String format) are we a valid format string for some typestatic boolean
isVersionString
(String version) are we a valid version string of some typestatic VCFHeaderVersion
toHeaderVersion
(String version) get the header versionstatic VCFHeaderVersion
Returns the enum constant of this class with the specified name.static VCFHeaderVersion[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VCF3_2
-
VCF3_3
-
VCF4_0
-
VCF4_1
-
VCF4_2
-
VCF4_3
-
VCF4_4
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
toHeaderVersion
get the header version- Parameters:
version
- the version string- Returns:
- a VCFHeaderVersion object
-
isVersionString
are we a valid version string of some type- Parameters:
version
- the version string- Returns:
- true if we're valid of some type, false otherwise
-
isFormatString
are we a valid format string for some type- Parameters:
format
- the format string- Returns:
- true if we're valid of some type, false otherwise
-
getHeaderVersion
-
isAtLeastAsRecentAs
Determines whether this version is at least as recent as a given version- Parameters:
target
- the target version to compare against- Returns:
- true if this version is at least as recent as the target version, false otherwise
-
getVersionString
-
getFormatString
-