Fix CodeHelper.nonnull() nullness annotation
[mdsal.git] / binding / yang-binding / src / main / java / org / opendaylight / yangtools / yang / binding / EventInstantAware.java
1 /*
2  * Copyright (c) 2019 PANTHEON.tech, s.r.o. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.yangtools.yang.binding;
9
10 import com.google.common.annotations.Beta;
11 import java.time.Instant;
12 import org.eclipse.jdt.annotation.NonNull;
13
14 /**
15  * This interface is mixed in into implementations of other constructs, such as {@link Notification} to add the time
16  * when the event occurred.
17  */
18 @Beta
19 public interface EventInstantAware {
20     /**
21      * Get the time of the event occurrence.
22      *
23      * @return the event time
24      */
25     @NonNull Instant eventInstant();
26 }