code: public List<PoolInfo> getPoolInfos() {
      Set<PoolInfo> poolInfos = new HashSet<PoolInfo>();
      for (ResourceType type : types) {
        poolInfos.addAll(getPoolInfoMetrics(type).keySet());
      }
      List<PoolInfo> result = new ArrayList<PoolInfo>();
      result.addAll(poolInfos);
      Collections.sort(result);
      return result;
    }
docs: Get a snapshot of the pool infos that is sorted.
  
  @return Sorted snapshot of the pool infos.