Switch to JDT annotations for Nullable and NonNull
[netvirt.git] / neutronvpn / api / src / main / java / org / opendaylight / netvirt / neutronvpn / api / l2gw / L2GatewayCache.java
1 /*
2  * Copyright (c) 2016 Ericsson India Global Services Pvt Ltd. 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.netvirt.neutronvpn.api.l2gw;
9
10 import java.util.Collection;
11 import org.eclipse.jdt.annotation.NonNull;
12 import org.eclipse.jdt.annotation.Nullable;
13
14 public interface L2GatewayCache {
15     @NonNull
16     L2GatewayDevice addOrGet(@NonNull String deviceName);
17
18     @Nullable
19     L2GatewayDevice remove(String deviceName);
20
21     @Nullable
22     L2GatewayDevice get(String deviceName);
23
24     @NonNull
25     Collection<L2GatewayDevice> getAll();
26 }