mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-15 17:14:45 +00:00
reformat code
This commit is contained in:
21 files changed
+731
-498
No files matched your search
@@ -4,15 +4,18 @@ import com.falsepattern.lib.StableAPI;
|
||||
|
||||
@StableAPI(since = "0.6.0")
|
||||
public abstract class Version implements Comparable<Version> {
|
||||
protected Version(){}
|
||||
|
||||
public boolean equals(Version other) {
|
||||
return compareTo(other) == 0;
|
||||
protected Version() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (!(obj instanceof Version)) return false;
|
||||
if (!(obj instanceof Version)) {
|
||||
return false;
|
||||
}
|
||||
return equals((Version) obj);
|
||||
}
|
||||
|
||||
public boolean equals(Version other) {
|
||||
return compareTo(other) == 0;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user