I've been trying to use the contains function on an arrayList that contains objects. Will that not work with an object?

Code:
   //Provider
...