@Override
  public boolean contains(Object element) {
    if (hasLimitIterator) {
      return super.contains(element);
    } else {
      if (element == null) {
        return numNulls > 0;
      }
      return mapContainsKey(element);
    }
  }
Return an iterator over the elements in this collection. Duplicates will show up the number of
times it has occurrences.
geode-core/src/main/java/org/apache/geode/cache/query/internal/Bag.java