Package com.thebuzzmedia.exiftool
Class Version
java.lang.Object
com.thebuzzmedia.exiftool.Version
- All Implemented Interfaces:
Comparable<Version>
Define a version number with:
- A major identifier.
- A minor identifier.
- A patch identifier.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Version
Create new version number from a given string formatted such as:[major].[minor].[patch]
. Major identifier is mandatory, other elements are optional and will be initialized to zero by default. Valid format: 1.1.0 / 1.1 / 1- Parameters:
version
- Version number.
-
-
Method Details
-
getMajor
public int getMajor()Getsmajor
.- Returns:
major
.
-
getMinor
public int getMinor()Getsminor
.- Returns:
minor
.
-
getPatch
public int getPatch()Getspatch
.- Returns:
patch
.
-
hashCode
public int hashCode() -
equals
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Version>
-