• Christian Schudt's avatar
    Various improvements in Version class · 23c84bf0
    Christian Schudt authored
    - Make it final and immutable.
    - Use pattern-based parsing, which allows to also parse the ReleaseStatus and the statusVersion.
    - Implement toString() method.
    - Implement equals() and hashCode(), which is a strong recommendation when implementing Comparable: From the JavaDoc: "It is strongly recommended that (x.compareTo(y)==0) == (x.equals(y))", which was not the case.
    - Allow CharSequence
    - Simplify getVersionString() method (less duplicate code).
    - Improve compareTo() method by properly comparing more than 2 digits and also comparing ReleaseStatus and statusVersion
    23c84bf0
Name
Last commit
Last update
build Loading commit data...
documentation Loading commit data...
src Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...