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