]> git.basschouten.com Git - openhab-addons.git/blob
4716fec4b36380c35a03fae7b20a3cbf5bf72c80
[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.lametrictime.internal.api.dto;
14
15 /**
16  * Interface for api value.
17  *
18  * @author Gregory Moyer - Initial contribution
19  */
20 public interface ApiValue {
21     String toRaw();
22
23     static String raw(ApiValue value) {
24         if (value == null) {
25             return null;
26         }
27
28         return value.toRaw();
29     }
30 }