Is map containsKey case insensitive?

Map uses equals and hashCode to test for key equality, and you can’t overwrite these for String . What you could do is define your own Key class which contains a string value, but implements equals and hashCode in a case insensitive way.

Sizin İçin Seçtik  Is React Native good for web?

Leave a Reply

Your email address will not be published. Required fields are marked *

Is map containsKey case-insensitive?

Map uses equals and hashCode to test for key equality, and you can’t overwrite these for String . What you could do is define your own Key class which contains a string value, but implements equals and hashCode in a case insensitive way.

Sizin İçin Seçtik  Evlerde kullanılan elektrik doğru akım mı?

Leave a Reply

Your email address will not be published. Required fields are marked *