Compares the object to another that is provided.
the object to compare this one against.
0 if they contain the same id, 1 otherwise
0
1