Package htsjdk.samtools.cram.common
Class CRAMVersion
java.lang.Object
htsjdk.samtools.cram.common.CRAMVersion
- All Implemented Interfaces:
Comparable<CRAMVersion>
A class to represent a version information, 3 number: major, minor and build number.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCompare with another version.booleancompatibleWith(CRAMVersion cramVersion) booleanCheck if another version is exactly the same as this one.intgetMajor()intgetMinor()inthashCode()toString()
-
Constructor Details
-
CRAMVersion
public CRAMVersion(int major, int minor) -
CRAMVersion
-
-
Method Details
-
getMajor
public int getMajor()- Returns:
- the CRAM major version for this CRAMVersion
-
getMinor
public int getMinor()- Returns:
- the CRAM minor version for this CRAMVersion
-
toString
-
compareTo
Compare with another version.- Specified by:
compareToin interfaceComparable<CRAMVersion>- Parameters:
o- another version- Returns:
- 0 if both versions are the same, a negative if the other version is higher and a positive otherwise.
-
compatibleWith
-
equals
Check if another version is exactly the same as this one. -
hashCode
public int hashCode()
-