Constructor and Description |
---|
Version(java.lang.String version)
Creates a version identifier from the specified string.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Version other)
Compares this
Version object to another Version . |
boolean |
equals(java.lang.Object obj) |
int |
getMajorVersion()
Get the major version
|
int |
getMicroVersion()
Get the minor version
|
int |
getMinorVersion()
Get the major version
|
java.lang.String |
getQualifier()
Get the qualifier
|
int |
hashCode() |
java.lang.String |
toString() |
public Version(java.lang.String version)
java.lang.IllegalArgumentException
- if the version string can't be parsedpublic int getMajorVersion()
public int getMinorVersion()
public int getMicroVersion()
public java.lang.String getQualifier()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int compareTo(Version other)
Version
object to another Version
.compareTo
in interface java.lang.Comparable<Version>
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2022 The Apache Software Foundation. All rights reserved.