Class SAMHeaderRecordComparator<T extends AbstractSAMHeaderRecord>

java.lang.Object
htsjdk.samtools.SAMHeaderRecordComparator<T>
All Implemented Interfaces:
Serializable, Comparator<T>

public class SAMHeaderRecordComparator<T extends AbstractSAMHeaderRecord> extends Object implements Comparator<T>, Serializable
Provides ordering based on SAM header records' attribute values. Provide the list of attributes to use in the comparison to the constructor. Null attribute values (i.e., those attributes not present in the record) sort behind those that have values.
See Also:
  • Constructor Details

    • SAMHeaderRecordComparator

      public SAMHeaderRecordComparator(String... attributes)
  • Method Details