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 false
public boolean isAtLeast(GpgVersion other)
other
- the version to compare withtrue
is this is greater than or equal to other
, otherwise false
Copyright © 2002–2021 The Apache Software Foundation. All rights reserved.