Serializable
SAMFileHeader
, SAMProgramRecord
, SAMReadGroupRecord
, SAMSequenceRecord
public abstract class AbstractSAMHeaderRecord extends Object implements Serializable
Modifier and Type | Field | Description |
---|---|---|
static long |
serialVersionUID |
Constructor | Description |
---|---|
AbstractSAMHeaderRecord() |
Modifier and Type | Method | Description |
---|---|---|
protected boolean |
attributesEqual(AbstractSAMHeaderRecord that) |
For use in the equals() method of the concrete class.
|
protected int |
attributesHashCode() |
For use in the hashCode() method of the concrete class.
|
String |
getAttribute(String key) |
|
Set<Map.Entry<String,String>> |
getAttributes() |
Returns the Set of attributes.
|
String |
getId() |
Returns the ID tag (or equivalent) for this header record.
|
abstract String |
getSAMString() |
Returns the record in the SAM line-based text format.
|
void |
setAttribute(String key,
Object value) |
Deprecated.
Use
instead |
void |
setAttribute(String key,
String value) |
Set the given value for the attribute named 'key'.
|
String |
toString() |
Simple to String that outputs the concrete class name and the set of attributes stored.
|
public static final long serialVersionUID
@Deprecated public void setAttribute(String key, Object value)
instead
key
- attribute namevalue
- attribute valuepublic void setAttribute(String key, String value)
key
- attribute namevalue
- attribute valuepublic String getId()
protected boolean attributesEqual(AbstractSAMHeaderRecord that)
protected int attributesHashCode()
public String toString()
public abstract String getSAMString()