equal
deleted
inserted
replaced
231 * @return a {@code Map<String, Object>} object containing all properties. |
231 * @return a {@code Map<String, Object>} object containing all properties. |
232 * If no properties are recognized, an empty map is returned. |
232 * If no properties are recognized, an empty map is returned. |
233 * @see #getProperty(String) |
233 * @see #getProperty(String) |
234 * @since 1.5 |
234 * @since 1.5 |
235 */ |
235 */ |
|
236 @SuppressWarnings("unchecked") // Cast of result of clone |
236 public Map<String, Object> properties() { |
237 public Map<String, Object> properties() { |
237 Map<String,Object> ret; |
238 Map<String,Object> ret; |
238 if (properties == null) { |
239 if (properties == null) { |
239 ret = new HashMap<String,Object>(0); |
240 ret = new HashMap<>(0); |
240 } else { |
241 } else { |
241 ret = (Map<String,Object>) (properties.clone()); |
242 ret = (Map<String,Object>) (properties.clone()); |
242 } |
243 } |
243 return Collections.unmodifiableMap(ret); |
244 return Collections.unmodifiableMap(ret); |
244 } |
245 } |