Sirisha Pratha

Avatar photo

Sirisha Pratha

Featured Author

Java Developer since 2011, Pittsburgh JUG leader, Committer at Eclipse Collections Java Library.

Do you want your ad here?

Contact us to get your ad seen by thousands of users every day!

[email protected]
Likes 0
Comments 1
Shares 0
Articles 3
Views 8,6K
Latest post

Primitive Set Operations in Eclipse Collections — Part 2

Continuing from Part 1, in the Eclipse Collections 11.0 release, we will have the following Set operations union, intersect, difference, symmetricDifference, isSubsetOf, isProperSubsetOf, cartesianProduct on primitive collections. These APIs are already available on Sets on the object side, but my goal was to implement these methods for Sets supporting primitive types namely IntSet, LongSet, ShortSet, DoubleSet, FloatSet, CharSet, BooleanSet, ByteSet. Additionally, the above operations will be available in both mutable and immutable interfaces.

For the Record!

Ever since Java announced their 6-month release cycle, there is excitement around exploring new features and even more so with preview features.

Now, what is a record? It is a new variety of type declaration. It is also a sub-type of class. A common type of class, as we all know, is the data-carrier class. They are classes that have some fields and their corresponding getters and setters. They usually have little to no logic.

Records help provide a way to succinctly describe the intent of these data-carrier classes. A little less conversation, a little more action.

Join the Community

Be a Part of Our Network

Mastodon

Subscribe to foojay updates:

https://foojay.io/today/author/sirisha-pratha/feed/
Copied to the clipboard