it is very easy indeed.
if you think the simply way is very simply actually.
I have finished to make that.
a few weeks ago and have posted it as a scenario right here.
I think you could find it to take a look.
if I am you, I prefer to find my own way better than follow other's way.
If you still want more help with this then it'd help to be a bit more specific - what have you tried so far? Have you got any code that we can work from? Generally speaking, if you have a class you can implement the equals() method and subsequently call it to work out if two particular objects are equal, but how to implement it depends on the context!