eclipse / eclipse-collections

Eclipse Collections is a collections framework for Java with optimized data structures and a rich, functional and fluent API.
https://eclipse.dev/collections/
2.42k stars 604 forks source link

IntTreeSortedSet #354

Open shahamer opened 6 years ago

shahamer commented 6 years ago

Is it planned to add PrimitiveTreeSortedSet (e.g., IntTreeSortedSet, LongTreeSortedSet)? (as currently one needs to use TreeSortedSet, e.g., TreeSortedSet).

nikhilnanivadekar commented 6 years ago

@shahamer it is a good idea to have PrimitiveSortedSets. However, currently we have not planned to add them. We will happily take contributions though. I am fine to even start by adding one primitive at a time and only Mutable variants of it.

shahamer commented 6 years ago

Sure. Why not. To where should I send the code? or, should I just attach it here?

nikhilnanivadekar commented 6 years ago

You can follow the steps on our contribution guide: https://github.com/eclipse/eclipse-collections/blob/master/CONTRIBUTING.md

When it comes to primitive collections, we use code generation to generate our classes. The code generator is available here: https://github.com/eclipse/eclipse-collections/tree/master/eclipse-collections-code-generator/src/main/java/org/eclipse/collections/codegenerator

The string templates go here: https://github.com/eclipse/eclipse-collections/tree/master/eclipse-collections-code-generator/src/main/resources

Feel free to reach out with questions. We will be happy to help. Cc @donraab