7 ms·
My suggestion would be to use compareTo where possible, and rely on equals only when you know for sure that it's implemented correctly
by Igor_Wiwi 2y ago
My suggestion would be to use compareTo where possible, and rely on equals only when you know for sure that it's implemented correctly
- happytoexplain 2y ago>only when you know for sure that it's implemented correctly This is pretty disappointing advice for a standard/bundled API :(
- olliej 2y agoWhich implies the type is not compatible with the built in collections? Or have they moved aware from equals?