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