The Collection.contains() method check if a collection contains a given object, using the .equals() method to perform the comparison.
.equals()
From Java7 Javadoc
There is no way to check that the way you are trying to do. Without iterating through collection you cannot check that the object point to same reference or not.
AFAIK, No (At least a clean way).