Exemplo n.º 1
0
 @Override
 public Collection<Region> getRegions(RegionType type) {
   if (!"ISO".equals(type.getId())) {
     return Collections.emptySet();
   }
   return Collections.unmodifiableCollection(regions.values());
 }
Exemplo n.º 2
0
 @Override
 public Region getRegion(RegionType type, String code) {
   if (!"ISO".equals(type.getId())) {
     return null;
   }
   return this.regions.get(code);
 }