@Override
    public boolean hasNext() {
      return currPos < localLimit;
    }
Abstract the base class to Set if it implements Set (instead of using the concrete class as the
type). Fix for #41249: Prevents the class ResultsBag.SetView from being serialized to an older
version client.

This kind of abstraction could be done in the future for Lists, etc., as well, if desired, but
there is no requirement for this at this time
geode-core/src/main/java/org/apache/geode/cache/query/internal/ResultsCollectionWrapper.java