public class GpgVersion extends Object implements Comparable<GpgVersion>
gpg --version| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(GpgVersion other) |
boolean |
equals(Object other) |
int |
hashCode() |
boolean |
isAtLeast(GpgVersion other)
Verify if this version is at least some other version
|
boolean |
isBefore(GpgVersion other)
Verify if this version is before some other version
|
static GpgVersion |
parse(String rawVersion) |
String |
toString() |
public static GpgVersion parse(String rawVersion)
public int compareTo(GpgVersion other)
compareTo in interface Comparable<GpgVersion>public boolean isBefore(GpgVersion other)
other - the version to compare withtrue is this is less than other, otherwise falsepublic boolean isAtLeast(GpgVersion other)
other - the version to compare withtrue is this is greater than or equal to other, otherwise falseCopyright © 2002–2021 The Apache Software Foundation. All rights reserved.