]> git.basschouten.com Git - openhab-addons.git/blob
ba6ccdb058037d25be470287b4aab901799e9b77
[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.persistence.influxdb.internal;
14
15 import java.util.Date;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
19 import org.openhab.core.persistence.PersistenceItemInfo;
20
21 /**
22  * Java bean used to return information about stored items
23  *
24  * @author Joan Pujol Espinar - Initial contribution
25  */
26 @NonNullByDefault
27 public class InfluxDBPersistentItemInfo implements PersistenceItemInfo {
28     private final String name;
29     private final Integer count;
30
31     public InfluxDBPersistentItemInfo(String name, Integer count) {
32         this.name = name;
33         this.count = count;
34     }
35
36     @Override
37     public String getName() {
38         return name;
39     }
40
41     @Override
42     @Nullable
43     public Integer getCount() {
44         return count;
45     }
46
47     @Override
48     @Nullable
49     public Date getEarliest() {
50         return null;
51     }
52
53     @Override
54     @Nullable
55     public Date getLatest() {
56         return null;
57     }
58 }