Age | Commit message (Collapse) | Author | |
---|---|---|---|
2025-06-15 | Bump version number to 1.0.0v1.0.0 | Adrien Hopkins | |
2025-06-15 | Format & clean up source code | Adrien Hopkins | |
2025-06-04 | Update copyright notices' years | Adrien Hopkins | |
I used the Git history for years after 2019, and only included 2019 or 2018 if they were already there. I also added copyright notices to all code files that don't already have them. | |||
2025-05-30 | Ensure LinearUnit&Prefix ==/hash obey contracts | Adrien Hopkins | |
Previously, these classes' equals() and hashCode() methods did not obey the contracts: For equals(), I considered two values equal even if there was a very small deviation, in order to avoid floating-point error. This equals relation is not transitive (i.e. it is possible that a = b && b = c but a ≠ c), violating the contract of equals. This also makes it impossible to properly implement hashCode, as if two values are equal, they must have the same hash code. The solution I had provided is an ineffective hack, which could mess with hash maps and sets. I have changed the implementation to demand exact equality. I have also provided equalsApproximately() methods to both classes that use the old behaviour. Hash codes are only really used for hash maps, and the old implementation doesn't even achieve its purpose, so I did not add a method to return the old hash behaviour. | |||
2025-03-07 | Add tests for LinearUnitValue | Adrien Hopkins | |
I specifically added tests for the methods that Jacoco says haven't been tested: - convertToMultiple - equals - equivalent - hashCode - operation methods | |||
2024-08-15 | Correct encoding of ± | Adrien Hopkins | |
2024-03-24 | Format source code & set explicit UTF-8 | Adrien Hopkins | |
2022-04-18 | Implemented rounding and duplicate-removal settings into the new GUI | Adrien Hopkins | |
2022-02-26 | Implemented unit conversion, with a few problems | Adrien Hopkins | |
TabbedView now displays its units, but with their toString method which shows their definition in addition to their name | |||
2021-11-04 | Added a bunch of tests related to unit values | Adrien Hopkins | |
2021-10-04 | Removed unused imports | Adrien Hopkins | |
2021-08-26 | Added units and dimensions to the design document | Adrien Hopkins | |
2021-08-07 | Renamed sevenUnits.math to sevenUnits.utils | Adrien Hopkins | |
2021-06-28 | Renamed project to 7Units | Adrien Hopkins | |