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.44k stars 614 forks source link

Implement primitive BiMaps #313

Closed donraab closed 7 years ago

donraab commented 7 years ago

Today we have PrimitiveObjectMap, ObjectPrimitiveMap and PrimitivePrimitiveMap combinations. It may be useful to have the same constructs for BiMaps. Has anyone encountered this use case? Comment or vote if you have.

nikhilnanivadekar commented 7 years ago

BiMap is a special case of having a self contained map and an inverse map. Adding them on the primitive side might be unnecessary. But happy to see if other users think it is useful.