]> git.basschouten.com Git - openhab-addons.git/blob
3531469541afd6ddff492e3e5b78bdf2b812d32f
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.io.imperihome.internal.model.param;
14
15 import java.util.HashMap;
16
17 /**
18  * No-op extension of HashMap storing device parameters. This class exists because it allows the use of a Map in Device
19  * and at the same
20  * time makes it possible to expose the values as a JSON array using a custom serializer.
21  *
22  * @author Pepijn de Geus - Initial contribution
23  */
24 public class DeviceParameters extends HashMap<ParamType, DeviceParam> {
25
26     private static final long serialVersionUID = -3877582034887195137L;
27
28     public void set(DeviceParam param) {
29         put(param.getKey(), param);
30     }
31 }