public class Version extends Object implements Comparable<Version>
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Version other) |
static Version |
create(String version) |
static Version |
createRelease(String version)
Deprecated.
|
boolean |
equals(Object o) |
String |
getMajor() |
String |
getMinor() |
String |
getName() |
String |
getPatch() |
String |
getPatch2() |
String |
getQualifier() |
int |
hashCode() |
boolean |
isCompatibleWith(Version version)
Two versions are compatible when they are identical except for qualifier.
|
static boolean |
isSnapshot(String version) |
Version |
removeQualifier() |
String |
toString() |
public String getMajor()
public String getMinor()
public String getPatch()
public String getPatch2()
public String getName()
public String getQualifier()
public int compareTo(Version other)
compareTo
in interface Comparable<Version>
@Deprecated public static Version createRelease(String version)
removeQualifier()
public static boolean isSnapshot(String version)
public Version removeQualifier()
public boolean isCompatibleWith(Version version)
Copyright © 2010–2016 SonarSource. All rights reserved.