private boolean equalTo(JCGLVersion another) { return number.equals(another.number) && text.equals(another.text); }
@Override public boolean equals( final @Nullable Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (this.getClass() != obj.getClass()) { return false; } final JCGLVersion other = (JCGLVersion) obj; return this.number.equals(other.number) && this.text.equals(other.text); }
@Override public int compareTo( final @Nullable JCGLVersionNumber other) { final JCGLVersionNumber o = NullCheck.notNull(other, "Other"); if (this.equals(other)) { return 0; } if (this.version_major < o.version_major) { return -1; } if (this.version_major > o.version_major) { return 1; } if (this.version_minor < o.version_minor) { return -1; } if (this.version_minor > o.version_minor) { return 1; } if (this.version_micro < o.version_micro) { return -1; } if (this.version_micro > o.version_micro) { return 1; } throw new UnreachableCodeException(); }