Course contentsShow
Java
Lesson 1136 of 2,87026. Map ImplementationsPro lesson

Consistent Ordering and equals Contract

How compareTo/compare must be consistent with equals to avoid unexpected Map behavior.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.