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.binding.knx.internal.client;
15 import tuwien.auto.calimero.datapoint.Datapoint;
18 * Information about a data point which is queued to be read from the KNX bus.
20 * @author Karel Goderis - Initial contribution
22 public class ReadDatapoint {
24 private final Datapoint datapoint;
26 private final int limit;
28 public ReadDatapoint(Datapoint datapoint, int limit) {
29 this.datapoint = datapoint;
34 public Datapoint getDatapoint() {
38 public int getRetries() {
42 public void incrementRetries() {
46 public int getLimit() {
51 public int hashCode() {
54 result = prime * result + ((datapoint.getMainAddress() == null) ? 0 : datapoint.getMainAddress().hashCode());
59 public boolean equals(Object obj) {
66 if (getClass() != obj.getClass()) {
69 ReadDatapoint other = (ReadDatapoint) obj;
70 if (datapoint == null) {
71 if (other.datapoint != null) {
74 } else if (!datapoint.getMainAddress().equals(other.datapoint.getMainAddress())) {