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 TypeMethodDescriptionint
Compare with another version.boolean
compatibleWith
(CRAMVersion cramVersion) boolean
Check if another version is exactly the same as this one.int
getMajor()
int
getMinor()
int
hashCode()
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:
compareTo
in 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()
-