I have run into a small problem, that I can not fix. And I need help.
If you know Java, and have a small amount of time to help me, please let me know.
I can pm more details, but essentially, the problem is thus:
I have an object, which has its own hashcode, equals, and tostring functions.
The hashcode is just the hashcode of the toString. The toString includes only 2 variables in it. It contains the name of the Object, and the name of the object that it is “attached to”. Neither of these can change, they are both final and created when the object is created.
When created, the hashcode of this particular problem object is -1444968155
This object, is put into a LinkedHashMap <myobject, boolean=“”>(and when it is put in, the hashcode is the same). This object is the only thing in the hashmap. The boolean we put it in with is “true”.
Later, we called HashMap.get(object), and we get null.
However, I get the object out of the hashmap, I find that its hashmap is still the same.
At no point does the hashmap change, at no point does the object change, and indeed the object we are calling with .get(object) is == and .equals() to the object in the hashmap.
I have no idea how this is possible that I am getting null here, and I need some help since I don’t actually know java that well.
thx,
veqryn</myobject,>