public class HtsVersion extends java.lang.Object implements java.lang.Comparable<HtsVersion>
HtsCodec, HtsEncoder and HtsDecoder for HTS file format and codec
versions.| Modifier and Type | Field and Description |
|---|---|
static HtsVersion |
NEWEST_VERSION
Sentinel constant used to indicate the newest version available
|
| Constructor and Description |
|---|
HtsVersion(int major,
int minor,
int patch)
Construct a 3 part version number.
|
HtsVersion(java.lang.String versionString)
Construct a 3 part version number from a string withe the format
major.minor.patch, where
each of major/minor/patch is an integer. |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(HtsVersion o) |
boolean |
equals(java.lang.Object o) |
int |
getMajorVersion()
Get the major version integer for this version.
|
int |
getMinorVersion()
Get the minor version integer for this version.
|
int |
getPatchVersion()
Get the patch version integer for this version.
|
int |
hashCode() |
java.lang.String |
toString() |
public static final HtsVersion NEWEST_VERSION
public HtsVersion(int major,
int minor,
int patch)
major - major version numberminor - minor version numberpatch - patch numberpublic HtsVersion(java.lang.String versionString)
major.minor.patch, where
each of major/minor/patch is an integer.versionString - the version string from which to construct this versionpublic int getMajorVersion()
public int getMinorVersion()
public int getPatchVersion()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(HtsVersion o)
compareTo in interface java.lang.Comparable<HtsVersion>