File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Store an object in a hash value?
Joined: Oct 28, 2009
Oct 28, 2009 16:51:55
I want to store a series of objects in a key/value format. I tried using a
but all I get back are NULLS so I'm assuming the object isn't being stored. Is there a way I can store objects in a key/value format?
Joined: Oct 23, 2009
Oct 29, 2009 04:42:19
Same answer than in
Store Object in key/value format
thread in Sun forums: show what you try to do. At least a significant running small sample.
Joined: Sep 19, 2008
Oct 29, 2009 07:50:23
If you are using your own object as a key then you should override equals and hashcoe method.
SCJP 6,SCWCD 5,SCBCD 5
Failure is not an option.
I agree. Here's the link:
subject: Store an object in a hash value?
[JSF 2.0] f:selectItems with custom class
Difference in HashMap and HashSet
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014