H
Hendrik Maryns
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message
Hi,
I want to use arrays as keys in a HashMap. Now, this does not seem to
be a good idea, as it will use the hashCode implementation of Object,
which discriminate every array.
So basically, I want a hash map that uses Arrays.hashCode instead. Does
such an implementation exist? Alternatively, I could wrap the arrays in
a list, or write my own ArrayHashMap, which would be best?
TIA, H.
--
Hendrik Maryns
==================
www.lieverleven.be
http://aouw.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFD9KvDe+7xMGD3itQRAmmaAJ405AUCbAysAhCDZUOV+JBDaqSO6ACeIKFf
tpcA0PZPTJM7Q10GzNQV7Vw=
=HCOv
-----END PGP SIGNATURE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message
Hi,
I want to use arrays as keys in a HashMap. Now, this does not seem to
be a good idea, as it will use the hashCode implementation of Object,
which discriminate every array.
So basically, I want a hash map that uses Arrays.hashCode instead. Does
such an implementation exist? Alternatively, I could wrap the arrays in
a list, or write my own ArrayHashMap, which would be best?
TIA, H.
--
Hendrik Maryns
==================
www.lieverleven.be
http://aouw.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFD9KvDe+7xMGD3itQRAmmaAJ405AUCbAysAhCDZUOV+JBDaqSO6ACeIKFf
tpcA0PZPTJM7Q10GzNQV7Vw=
=HCOv
-----END PGP SIGNATURE-----