static bool containsExactObject(Collection c, O o) { if (c != null) for (O x : c) if (x == o) true; false; }