Package htsjdk.samtools.metrics
Class StringHeader
- java.lang.Object
-
- htsjdk.samtools.metrics.StringHeader
-
- All Implemented Interfaces:
Header,Serializable
public class StringHeader extends Object implements Header
A simple header who's data type is a single String. Should not be used for anything other than comments or descriptive text.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StringHeader()Default constructor.StringHeader(String value)Constructor that uses the supplied value as the value of the header.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Checks equality on the value of the header.StringgetValue()inthashCode()voidparse(String in)Parses the data contained in the String version of the header.voidsetValue(String value)StringtoString()Converts the header to a String for persisting to a file.
-
-
-
Constructor Detail
-
StringHeader
public StringHeader()
Default constructor.
-
StringHeader
public StringHeader(String value)
Constructor that uses the supplied value as the value of the header.
-
-
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.
-
getValue
public String getValue()
-
setValue
public void setValue(String value)
-
equals
public boolean equals(Object o)
Checks equality on the value of the header.
-
-