2 * Copyright (c) 2010-2023 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 org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
18 import tuwien.auto.calimero.datapoint.Datapoint;
21 * Information about a data point which is queued to be read from the KNX bus.
23 * @author Karel Goderis - Initial contribution
26 public class ReadDatapoint {
28 private final Datapoint datapoint;
30 private final int limit;
32 public ReadDatapoint(Datapoint datapoint, int limit) {
33 this.datapoint = datapoint;
38 public Datapoint getDatapoint() {
42 public int getRetries() {
46 public void incrementRetries() {
50 public int getLimit() {
55 public int hashCode() {
58 result = prime * result + ((datapoint.getMainAddress() == null) ? 0 : datapoint.getMainAddress().hashCode());
63 public boolean equals(@Nullable Object obj) {
70 if (getClass() != obj.getClass()) {
74 ReadDatapoint other = (ReadDatapoint) obj;
75 return datapoint.getMainAddress().equals(other.datapoint.getMainAddress());