public class Version extends Object implements Comparable<Version>
Constructor and Description |
---|
Version(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(Object obj) |
int |
getMajorVersion()
Get the major version
|
int |
getMicroVersion()
Get the minor version
|
int |
getMinorVersion()
Get the major version
|
String |
getQualifier()
Get the qualifier
|
int |
hashCode() |
String |
toString() |
public Version(String version)
IllegalArgumentException
- if the version string can't be parsedpublic int getMajorVersion()
public int getMinorVersion()
public int getMicroVersion()
public String getQualifier()
public int compareTo(Version other)
Version
object to another Version
.compareTo
in interface Comparable<Version>
Copyright © 2017 The Apache Software Foundation. All rights reserved.