예제 #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);
 }