import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.stream.Collectors;
-import javax.annotation.Nonnull;
-import javax.annotation.Nullable;
+import org.eclipse.jdt.annotation.NonNull;
+import org.eclipse.jdt.annotation.Nullable;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid;
import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.attributes.Devices;
*
* @return the tunnel ips
*/
- @Nonnull
+ @NonNull
public Set<IpAddress> getTunnelIps() {
return tunnelIps;
}
l2gwConnectionIdToDevices.computeIfAbsent(connectionId, key -> Sets.newConcurrentHashSet()).add(device);
}
- @Nonnull
+ @NonNull
public Collection<Devices> getDevicesForL2gwConnectionId(Uuid connectionId) {
final Set<Devices> devices = l2gwConnectionIdToDevices.get(connectionId);
return devices != null ? devices : Collections.emptyList();
*
* @return the l2 gateway ids
*/
- @Nonnull
+ @NonNull
public Set<Uuid> getL2GatewayIds() {
return l2GatewayIds;
}
*
* @return the ucast local macs
*/
- @Nonnull
+ @NonNull
public Collection<LocalUcastMacs> getUcastLocalMacs() {
return new ArrayList<>(ucastLocalMacs);
}