public class Version extends Object implements Comparable<Version>
| Modifier and Type | Field and Description |
|---|---|
String |
abbrevCommitSha |
String |
additional |
static Version |
CURRENT_CLASSPATH
Reads the current version from the classpath, using version.properties and git.properties.
|
int |
major |
int |
minor |
int |
patch |
| Constructor and Description |
|---|
Version(int major,
int minor,
int patch) |
Version(int major,
int minor,
int patch,
String additional) |
Version(int major,
int minor,
int patch,
String additional,
String abbrevCommitSha) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Version that) |
boolean |
equals(Object o) |
boolean |
greaterMinor(Version other)
Check if this version is higher than the passed other version.
|
int |
hashCode() |
boolean |
sameOrHigher(Version other) |
String |
toString() |
public final int major
public final int minor
public final int patch
public final String additional
public final String abbrevCommitSha
public static final Version CURRENT_CLASSPATH
public Version(int major,
int minor,
int patch)
public Version(int major,
int minor,
int patch,
String additional)
public boolean greaterMinor(Version other)
other - version to comparepublic boolean sameOrHigher(Version other)
public int compareTo(Version that)
compareTo in interface Comparable<Version>Copyright © 2012-2016 Graylog, Inc.. All Rights Reserved.