Package vcf
Class VcfMetaInfo
- java.lang.Object
-
- vcf.VcfMetaInfo
-
public final class VcfMetaInfo extends java.lang.ObjectClass
VcfMetaInforepresents a VCF meta-information line.Instances of class
VcfMetaInfoare immutable.
-
-
Constructor Summary
Constructors Constructor Description VcfMetaInfo(java.lang.String line)Constructs aVcfMetaInfoinstance representing the specified VCF meta-information line.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringkey()Returns the VCF meta-information line key.java.lang.StringtoString()Returns the VCF meta-information line represented bythis.java.lang.Stringvalue()Returns the VCF meta-information line value.
-
-
-
Field Detail
-
PREFIX
public static final java.lang.String PREFIX
The VCF meta-information line prefix: "##"- See Also:
- Constant Field Values
-
DELIMITER
public static final char DELIMITER
The VCF meta-information line key-value delimiter: '='- See Also:
- Constant Field Values
-
-
Constructor Detail
-
VcfMetaInfo
public VcfMetaInfo(java.lang.String line)
Constructs aVcfMetaInfoinstance representing the specified VCF meta-information line.- Parameters:
line- a VCF meta-information line- Throws:
java.lang.IllegalArgumentException- if the specified information line, after removing any beginning and ending white-space, does not begin withVcfMetaInfo.PREFIX, and does not contain non-empty key and value strings separated by theVcfMetaInfo.DELIMITERcharacterjava.lang.NullPointerException- ifline == null
-
-
Method Detail
-
key
public java.lang.String key()
Returns the VCF meta-information line key.- Returns:
- the VCF meta-information line key
-
value
public java.lang.String value()
Returns the VCF meta-information line value.- Returns:
- the VCF meta-information line value
-
toString
public java.lang.String toString()
Returns the VCF meta-information line represented bythis.- Overrides:
toStringin classjava.lang.Object- Returns:
- the VCF meta-information line represented by
this
-
-