Package ai.djl.repository
Class Version
java.lang.Object
ai.djl.repository.Version
- All Implemented Interfaces:
Comparable<Version>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
int
Returns the incremental version (assuming major.minor.incremental...) of the version.int
Returns the major version (assuming major.minor.incremental...) of the version.int
Returns the minor version (assuming major.minor.incremental...) of the version.int
hashCode()
boolean
Returns true if this is a snapshot version.toString()
-
Constructor Details
-
Version
Constructs a version with the version string.- Parameters:
version
- the version string
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Version>
-
equals
-
hashCode
public int hashCode() -
getMajorVersion
public int getMajorVersion()Returns the major version (assuming major.minor.incremental...) of the version.- Returns:
- the major version
-
getMinorVersion
public int getMinorVersion()Returns the minor version (assuming major.minor.incremental...) of the version.- Returns:
- the minor version
-
getIncrementalVersion
public int getIncrementalVersion()Returns the incremental version (assuming major.minor.incremental...) of the version.- Returns:
- the incremental version
-
isSnapshot
public boolean isSnapshot()Returns true if this is a snapshot version.- Returns:
- true if this is a snapshot version
-
toString
-