Re: Map.get(key) returns null after inserting key
- From: "Daniel Pitts" <googlegroupie@xxxxxxxxxxxxx>
- Date: 30 Dec 2006 16:55:01 -0800
Mize-ze wrote:
Here is the full code just in case ....That is way too much for me to read through and parse.
Try writing an sscce <http://physci.org/codes/sscce/>, and then perhaps
we can help you...
Without looking at your source code. If you wrote the class that
defines the Key of the map, make sure that equals and hashCode are both
implemented and consistent. Basically, if a.equals(b) == true, then
a.hashCode() == b.hashCode() must be true.
Hope this helps.
Daniel.
.
- References:
- Map.get(key) returns null after inserting key
- From: Mize-ze
- Re: Map.get(key) returns null after inserting key
- From: Mize-ze
- Map.get(key) returns null after inserting key
- Prev by Date: Re: Map.get(key) returns null after inserting key
- Next by Date: Re: Open a file and count vowels
- Previous by thread: Re: Map.get(key) returns null after inserting key
- Next by thread: Re: Map.get(key) returns null after inserting key
- Index(es):
Relevant Pages
|