public final class VcfMetaInfo
extends java.lang.Object
Class VcfMetaInfo represents a VCF meta-information line.
Instances of class VcfMetaInfo are immutable.
| Modifier and Type | Field and Description |
|---|---|
static char |
DELIMITER
The VCF meta-information line key-value delimiter: '='
|
static java.lang.String |
PREFIX
The VCF meta-information line prefix: "##"
|
| Constructor and Description |
|---|
VcfMetaInfo(java.lang.String line)
Constructs a
VcfMetaInfo instance representing
the specified VCF meta-information line. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
key()
Returns the VCF meta-information line key.
|
java.lang.String |
toString()
Returns the VCF meta-information line represented by
this. |
java.lang.String |
value()
Returns the VCF meta-information line value.
|
public static final java.lang.String PREFIX
public static final char DELIMITER
public VcfMetaInfo(java.lang.String line)
VcfMetaInfo instance representing
the specified VCF meta-information line.line - a VCF meta-information linejava.lang.IllegalArgumentException - if the specified information line,
after removing any beginning and ending white-space, does not begin with
VcfMetaInfo.PREFIX, and does not contain non-empty key and
value strings separated by the VcfMetaInfo.DELIMITER characterjava.lang.NullPointerException - if line == nullpublic java.lang.String key()
public java.lang.String value()
public java.lang.String toString()
this.toString in class java.lang.Objectthis