T
Timo Nentwig
Hi!
Is there any way to use a byte[] array as a HashMap key? Like
Map m = new HashMap();
m.put(new byte[]{'a','b','c','d'}, new Foo());
and look up:
m.get(new byte[s, o, m, e]);
The above won't work. I want to prevent creating String objects but no way
to do this, is there?
Is there any way to use a byte[] array as a HashMap key? Like
Map m = new HashMap();
m.put(new byte[]{'a','b','c','d'}, new Foo());
and look up:
m.get(new byte[s, o, m, e]);
The above won't work. I want to prevent creating String objects but no way
to do this, is there?