public class Version extends Object implements Comparable<Version>
Constructor and Description |
---|
Version(int major,
int minor,
int micro) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Version other) |
boolean |
equals(Object o) |
int |
getMajor() |
String |
getMajorAndMinor() |
int |
getMicro() |
int |
getMinor() |
int |
hashCode() |
static Version |
of(String version)
Takes a String and converts it into a version.
|
String |
toString() |
public static Version of(@Nonnull String version)
version
- The version as a String, e.g.: "1.2".public int getMajor()
public int getMinor()
public int getMicro()
public String getMajorAndMinor()
public int compareTo(@Nonnull Version other)
compareTo
in interface Comparable<Version>
Copyright © 2002-2024 Atlassian. All Rights Reserved.