| | |
| | | public final class ManagedObjectDefinitionI18NResource { |
| | | |
| | | /** Application-wide set of instances. */ |
| | | private static final Map<String, ManagedObjectDefinitionI18NResource> |
| | | INSTANCES = new HashMap<String, ManagedObjectDefinitionI18NResource>(); |
| | | |
| | | |
| | | private static final Map<String, ManagedObjectDefinitionI18NResource> INSTANCES = new HashMap<>(); |
| | | |
| | | /** |
| | | * Gets the internationalized resource instance which can be used to |
| | |
| | | |
| | | /** Private constructor. */ |
| | | private ManagedObjectDefinitionI18NResource(String prefix) { |
| | | this.resources = new HashMap<AbstractManagedObjectDefinition<?, ?>, |
| | | Map<Locale, ResourceBundle>>(); |
| | | this.resources = new HashMap<>(); |
| | | this.prefix = prefix; |
| | | } |
| | | |
| | |
| | | // necessary. |
| | | Map<Locale, ResourceBundle> map = resources.get(d); |
| | | if (map == null) { |
| | | map = new HashMap<Locale, ResourceBundle>(); |
| | | map = new HashMap<>(); |
| | | resources.put(d, map); |
| | | } |
| | | |
| | |
| | | // necessary. |
| | | Map<Locale, ResourceBundle> map = resources.get(d); |
| | | if (map == null) { |
| | | map = new HashMap<Locale, ResourceBundle>(); |
| | | map = new HashMap<>(); |
| | | resources.put(d, map); |
| | | } |
| | | |