Package org.apache.maven.plugins.gpg
Class GpgVersion
- java.lang.Object
 - 
- org.apache.maven.plugins.gpg.GpgVersion
 
 
- 
- All Implemented Interfaces:
 Comparable<GpgVersion>
public class GpgVersion extends Object implements Comparable<GpgVersion>
Represents the semver value of GPG. This is in most cases the first line ofgpg --version- Since:
 - 3.0.0
 - Author:
 - Robert Scholte
 
 
- 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(GpgVersion other)booleanequals(Object other)inthashCode()booleanisAtLeast(GpgVersion other)Verify if this version is at least some other versionbooleanisBefore(GpgVersion other)Verify if this version is before some other versionstatic GpgVersionparse(String rawVersion)StringtoString() 
 - 
 
- 
- 
Method Detail
- 
parse
public static GpgVersion parse(String rawVersion)
 
- 
compareTo
public int compareTo(GpgVersion other)
- Specified by:
 compareToin interfaceComparable<GpgVersion>
 
- 
isBefore
public boolean isBefore(GpgVersion other)
Verify if this version is before some other version- Parameters:
 other- the version to compare with- Returns:
 trueis this is less thanother, otherwisefalse
 
- 
isAtLeast
public boolean isAtLeast(GpgVersion other)
Verify if this version is at least some other version- Parameters:
 other- the version to compare with- Returns:
 trueis this is greater than or equal toother, otherwisefalse
 
 - 
 
 -