mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-11 10:17:29 +00:00
22 lines
473 B
Java
22 lines
473 B
Java
package com.falsepattern.lib.dependencies;
|
|
|
|
import com.falsepattern.lib.StableAPI;
|
|
|
|
@StableAPI(since = "0.6.0")
|
|
public abstract class Version implements Comparable<Version> {
|
|
protected Version() {
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object obj) {
|
|
if (!(obj instanceof Version)) {
|
|
return false;
|
|
}
|
|
return equals((Version) obj);
|
|
}
|
|
|
|
public boolean equals(Version other) {
|
|
return compareTo(other) == 0;
|
|
}
|
|
}
|