/** * Factory method to create an unmodifiable map. * * @param map the map to decorate, must not be null * @throws IllegalArgumentException if map is null */ public static Map decorate(Map map) { if (map instanceof Unmodifiable) { return map; } return new UnmodifiableMap(map); }
/** * Factory method to create an unmodifiable map. * * @param map the map to decorate, must not be null * @throws IllegalArgumentException if map is null */ public static Map decorate(Map map) { if (map instanceof Unmodifiable) { return map; } return new UnmodifiableMap(map); }
/** * Factory method to create an unmodifiable map. * * @param map the map to decorate, must not be null * @throws IllegalArgumentException if map is null */ public static Map decorate(Map map) { if (map instanceof Unmodifiable) { return map; } return new UnmodifiableMap(map); }
/** * Factory method to create an unmodifiable map. * * @param map the map to decorate, must not be null * @throws IllegalArgumentException if map is null */ public static Map decorate(Map map) { if (map instanceof Unmodifiable) { return map; } return new UnmodifiableMap(map); }
/** * Factory method to create an unmodifiable map. * * @param map the map to decorate, must not be null * @throws IllegalArgumentException if map is null */ public static Map decorate(Map map) { if (map instanceof Unmodifiable) { return map; } return new UnmodifiableMap(map); }
/** * Factory method to create an unmodifiable map. * * @param map the map to decorate, must not be null * @throws IllegalArgumentException if map is null */ public static Map decorate(Map map) { if (map instanceof Unmodifiable) { return map; } return new UnmodifiableMap(map); }
/** * Factory method to create an unmodifiable map. * * @param map the map to decorate, must not be null * @throws IllegalArgumentException if map is null */ public static Map decorate(Map map) { if (map instanceof Unmodifiable) { return map; } return new UnmodifiableMap(map); }