Had to build a Map<ExpoPushMessage, SomeOtherStuff>
and unfortunately, realised that mymap.get(expoPushMessage) is null
Because mymap.get(expoPushMessage) == expoPushMessage is false
or
mymap.get(expoPushMessage).equals(expoPushMessage) is also false
I would imagine ExpoPushMessage need to implement equals() and hashcode()
aditionally would be very nice if you would implement nice toString(), so if you print ExpoPushMessage or ExpoPushTicket it will print nicely, instead of going through each getter manually.
Hi
Had to build a
Map<ExpoPushMessage, SomeOtherStuff>
and unfortunately, realised thatmymap.get(expoPushMessage)
is null Becausemymap.get(expoPushMessage) == expoPushMessage
is false ormymap.get(expoPushMessage).equals(expoPushMessage)
is also falseI would imagine
ExpoPushMessage
need to implementequals()
andhashcode()
aditionally would be very nice if you would implement nice
toString()
, so if you print ExpoPushMessage or ExpoPushTicket it will print nicely, instead of going through each getter manually.