Package htsjdk.samtools.metrics
Class VersionHeader
- java.lang.Object
-
- htsjdk.samtools.metrics.VersionHeader
-
- All Implemented Interfaces:
Header,Serializable
public class VersionHeader extends Object implements Header
Header that stores information about the version of some piece of software or data used to create the metrics file. Payload consists of a name or description of the versioned item and a version string.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VersionHeader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Equals method that checks that both the item and version string are equal.StringgetVersionedItem()StringgetVersionString()inthashCode()voidparse(String in)Parses the data contained in the String version of the header.voidsetVersionedItem(String versionedItem)voidsetVersionString(String versionString)StringtoString()Converts the header to a String for persisting to a file.
-
-
-
Method Detail
-
parse
public void parse(String in)
Description copied from interface:HeaderParses the data contained in the String version of the header.
-
toString
public String toString()
Description copied from interface:HeaderConverts the header to a String for persisting to a file.
-
getVersionedItem
public String getVersionedItem()
-
setVersionedItem
public void setVersionedItem(String versionedItem)
-
getVersionString
public String getVersionString()
-
setVersionString
public void setVersionString(String versionString)
-
equals
public boolean equals(Object o)
Equals method that checks that both the item and version string are equal.
-
-