]> git.basschouten.com Git - openhab-addons.git/blob
371dfb16fe02805e89d4d6f010e6cac85b050f6c
[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.binding.tacmi.internal.coe;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 /**
19  * The {@link TACmiConfiguration} class contains fields mapping thing configuration parameters.
20  *
21  * @author Christian Niessner - Initial contribution
22  */
23 @NonNullByDefault
24 public class TACmiChannelConfiguration {
25
26     /**
27      * chnanel / output id
28      */
29     public int output;
30
31     // required for MAP operations...
32     @Override
33     public int hashCode() {
34         return output;
35     }
36
37     @Override
38     public boolean equals(@Nullable Object other) {
39         if (this == other) {
40             return true;
41         }
42         if (other == null || !other.getClass().equals(TACmiChannelConfiguration.class)) {
43             return false;
44         }
45         TACmiChannelConfiguration o = (TACmiChannelConfiguration) other;
46         return this.output == o.output;
47     }
48 }