public void clearObjects() {
    objects = Collections.emptyList();
    objectTypeArray = new byte[0];
  }
sets the keys for this partlist
geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/VersionedObjectList.java