]> git.basschouten.com Git - openhab-addons.git/blob
9e337f2e29ab1c3e69d41467b0a86111a9c1dd4c
[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 /*
14  * Imported from https://github.com/google-gson/typeadapters/tree/master/jsr310/src
15  * and repackaged to avoid the default package.
16  */
17 package org.openhab.binding.lametrictime.internal.api.common.impl.typeadapters.imported;
18
19 import java.time.Instant;
20
21 import org.eclipse.jdt.annotation.NonNullByDefault;
22
23 /**
24  * Type adapter for jsr310 {@link Instant} class.
25  *
26  * @author Christophe Bornet - Initial contribution
27  */
28 @NonNullByDefault
29 public class InstantTypeAdapter extends DateTimeTypeAdapter<Instant> {
30
31     public InstantTypeAdapter() {
32         super(Instant::parse);
33     }
34 }