public List<S> partitionStateValues() {
        return new ArrayList<>(map.values());
    }
Returns the partition state values in order.
clients/src/main/java/org/apache/kafka/common/internals/PartitionStates.java