2 * Copyright (c) 2010-2022 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.io.imperihome.internal.model.param;
15 import java.util.HashMap;
18 * No-op extension of HashMap storing device parameters. This class exists because it allows the use of a Map in Device
20 * time makes it possible to expose the values as a JSON array using a custom serializer.
22 * @author Pepijn de Geus - Initial contribution
24 public class DeviceParameters extends HashMap<ParamType, DeviceParam> {
26 private static final long serialVersionUID = -3877582034887195137L;
28 public void set(DeviceParam param) {
29 put(param.getKey(), param);