Exemplo n.º 1
0
 public Map<Integer, AgeSet> getAgeSets(String regionName) {
   return new TreeMap<Integer, AgeSet>(ageMap.getMapFor(Region.getConstant(regionName)));
 }
Exemplo n.º 2
0
 /**
  * Returns a copy of the List contained in this MapKeyMap for the given ListKey. This method
  * returns null if the given key is not in this MapKeyMap.
  *
  * <p>This method is value-semantic in that no changes are made to the object passed into the
  * method and ownership of the returned List is transferred to the class calling this method.
  *
  * @param key The ListKey for which a copy of the list should be returned.
  * @return a copy of the List contained in this MapKeyMap for the given key; null if the given key
  *     is not a key in this MapKeyMap.
  */
 public <K, V> Map<K, V> getMapFor(MapKey<K, V> key1) {
   return map.getMapFor(key1);
 }