Releases: lewysDavies/Java-Probability-Collection
0.8 Update
This changes does not change functionality and will not break any implementation. All changes are internal only based on recieved feedback.
Optimisation
- Removed unnecessary updateIndex() call with an object is added, when we can easily determine the new entries' index value
Improved Benchmarking
- Remove loops and just use nano seconds
- Fix JVM memory allocation
- Setup & Teardown collections during each benchmark iteration
- Removed pointless map.addAll bench
- Removed unfair consume operation from mapAddSingle
0.7 Update
Implemented clear() method
This change only adds functionality and will not break any previous implementations.
0.6 Update
This changes does not change functionality and will not break any
implementation. All changes are internal only based on recieved feedback.
Changes to Collection Class:
- Updated contains to just use collection.stream.anyMatch
- Added parameter guards to protect against invalid elements
- get() will throw an illegal state exception if the collection is
empty - get() asserts object is not null (Which if the collection contains
elements, it never should be). - JavaDoc has been updated to document these changes
Changes to Tests:
- Added new tests to assert all errors are thrown correctly
- Added new test to assert get() never returns null in extreme edge
cases - Increased repeated test amounts
- Updated int comparison to use assertEquals not assertTrue x == y
Enjoy!
ProbabilityCollection.zip
Initial Release
Initial Release
Even though the data-structure has been thoroughly tested, it has not been used in a real production environment. I plan to increment the version slowly if bugs are encountered until finally we can reach a 1.0 release. If no bugs are uncovered, then over time the version will be bumped to 1.0 anyway.
Please find the v0.5 java file attached and feel free to post issues / questions,
Lewys Davies