|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object htsjdk.samtools.AbstractSAMHeaderRecord
public abstract class AbstractSAMHeaderRecord
Base class for the various concrete records in a SAM header, providing uniform access to the attributes.
Constructor Summary | |
---|---|
AbstractSAMHeaderRecord()
|
Method Summary | |
---|---|
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. |
java.lang.String |
getAttribute(java.lang.String key)
|
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>> |
getAttributes()
Returns the Set of attributes. |
java.lang.String |
getId()
Returns the ID tag (or equivalent) for this header record. |
void |
setAttribute(java.lang.String key,
java.lang.Object value)
Deprecated. Use the version that takes a String value instead |
void |
setAttribute(java.lang.String key,
java.lang.String value)
Set the given value for the attribute named 'key'. |
java.lang.String |
toString()
Simple to String that outputs the concrete class name and the set of attributes stored. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractSAMHeaderRecord()
Method Detail |
---|
public java.lang.String getAttribute(java.lang.String key)
public void setAttribute(java.lang.String key, java.lang.Object value)
key
- attribute namevalue
- attribute valuepublic void setAttribute(java.lang.String key, java.lang.String value)
key
- attribute namevalue
- attribute valuepublic java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>> getAttributes()
public java.lang.String getId()
protected boolean attributesEqual(AbstractSAMHeaderRecord that)
protected int attributesHashCode()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |