int (@Nullable Integer major, @Nullable Integer minor, @Nullable Integer bugfix) { int result = doCompare(this.major, major); if (result != 0) return result; result = doCompare(this.minor, minor); if (result != 0) return result; return doCompare(this.bugfix, bugfix); }