I’ve got a List<MyObject> list
And, I want to make use out of the list.contains()
function.
It doesn’t seem to work at the moment, i.e. there are objects in the list that match, but is not being picked up by the comparator operator.
I’m guessing I need to write my own comparison operator in MyObject
. What is the way to go about this?