@Override
    public Object getKey() {
      if (hasKeys) {
        return keys.get(index);
      }
      return null;
    }
sets the keys for this partlist
geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/VersionedObjectList.java