public abstract class AbstractSAMHeaderRecord extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
AbstractSAMHeaderRecord() |
Modifier and Type | Method and 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.
|
void |
setAttribute(String key,
Object value)
Deprecated.
Use the version that takes a String value 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
public void setAttribute(String key, Object value)
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()