static Map<String, Map<String, String>> convertBestPossibleState( Map<PartitionId, Map<String, String>> bestPossibleState) { Map<String, Map<String, String>> result = new HashMap<String, Map<String, String>>(); for (PartitionId partition : bestPossibleState.keySet()) { result.put(partition.stringify(), bestPossibleState.get(partition)); } return result; }
/** * Set the id of the partition this message concerns * * @param partitionId */ public void setPartitionId(PartitionId partitionId) { if (partitionId != null) { setPartitionName(partitionId.stringify()); } }