Merge branch 'master' of codeberg.org:Freeyourgadget/Gadgetbridge into multi-device-support

This commit is contained in:
Daniel Dakhno 2021-12-26 17:59:47 +01:00
commit 03344a2a52

View File

@ -35,6 +35,26 @@ public class Version implements Comparable<Version> {
this.version = version;
}
public boolean smallerOrEqualThan(Version that){
return !greaterThan(that);
}
public boolean greaterOrEqualThan(Version that){
return !smallerThan(that);
}
public boolean smallerThan(Version that){
return compareTo(that) == -1;
}
public boolean greaterThan(Version that){
return compareTo(that) == 1;
}
public boolean sameAs(Version that){
return compareTo(that) == 0;
}
@Override public int compareTo(Version that) {
if(that == null)
return 1;