Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Primitive collection API updates #91

Merged
merged 22 commits into from
Apr 27, 2016
Merged

Conversation

cmark
Copy link
Member

@cmark cmark commented Apr 27, 2016

Changes:

  • Add hashCode() and equals() implementations to fastutil wrapper classes
  • Moved PrimitiveMaps, PrimitiveSets and PrimitiveLists factories to collection.api bundle
  • Use ServiceLoader when looking up the factory implementations for map, set and list collection factory interfaces
  • Added fastutil-7.0.12.jar as embedded dependency to collections.fastutil bundle to properly enable serialization of primitive collection wrappers in non-RPC net4j protocols (like RF2 import).

Related issue: https://snowowl.atlassian.net/browse/SO-1952

apeteri and others added 19 commits April 25, 2016 12:48
- Add 0-arg factory method for ByteSet
- Convert array parameter to varargs
- Add "WithExpectedSize" suffix to method name where a size is expected
- Make LongOpenHashSet's collection copying factory method null-safe
- Remove LongSet to Set<Long> adapter and unmodifiable LongSet creating
method
- Convert array parameter to varargs
- Add "WithExpectedSize" suffix to method name where a size is expected
- Expose FloatList through PrimitiveLists
- Add "WithExpectedSize" suffix to method name where a size is expected
...to load factory classes for in api bundle

Add fastutil jar to properly serialize actual collection impl classes.
if (!(other.get(key) == null && other.containsKey(key)))
return false;
} else {
if (value.equals(other.get(key))) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing ! operator?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You now have to write it down hundred times. 😄

@apeteri
Copy link
Member

apeteri commented Apr 27, 2016

👍

@cmark cmark merged commit 4707055 into develop Apr 27, 2016
@cmark cmark deleted the feature-primitive-collection-updates branch June 19, 2017 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants