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 TypeMethodDescriptionintbooleanintReturns the incremental version (assuming major.minor.incremental...) of the version.intReturns the major version (assuming major.minor.incremental...) of the version.intReturns the minor version (assuming major.minor.incremental...) of the version.inthashCode()booleanReturns 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:
compareToin 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
-