public Set<Object> keySet() {
    if (!hasKeys) {
      return Collections.emptySet();
    } else {
      return new HashSet<>(keys);
    }
  }
sets the keys for this partlist
geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/VersionedObjectList.java