keyByClusterManagerId function
Map<ClusterManagerId, ClusterManager>
keyByClusterManagerId(
- Iterable<
ClusterManager> clusterManagers
Converts an Iterable of Cluster Managers in a Map of ClusterManagerId -> Cluster.
Implementation
Map<ClusterManagerId, ClusterManager> keyByClusterManagerId(
Iterable<ClusterManager> clusterManagers) {
return keyByMapsObjectId<ClusterManager>(clusterManagers)
.cast<ClusterManagerId, ClusterManager>();
}