package org.opendaylight.protocol.bgp.rib.spi;
-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.AsNumber;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.SendReceive;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.PeerId;
*
* @return PeerID
*/
- @Nonnull
- PeerId getPeerId();
+ @NonNull PeerId getPeerId();
/**
* Returns if peer supports Additional Path for specific table.
* @param tableKey table
* @return true if Additional Path is supported for defined table
*/
- default boolean supportsAddPathSupported(@Nonnull final TablesKey tableKey) {
+ default boolean supportsAddPathSupported(final @NonNull TablesKey tableKey) {
final SendReceive sendReceive = getSupportedAddPathTables(tableKey);
return sendReceive != null && (sendReceive.equals(SendReceive.Both) || sendReceive.equals(SendReceive.Receive));
}
* @param tableKey table
* @return AddPath support configuration if supported, otherwise null
*/
- @Nullable
- SendReceive getSupportedAddPathTables(@Nonnull TablesKey tableKey);
+ @Nullable SendReceive getSupportedAddPathTables(@NonNull TablesKey tableKey);
/**
* Returns true if we have advertized support for a table, i.e. any prefix from this table should
* @param tableKey table
* @return true if the table is being advertized to the peer.
*/
- boolean supportsTable(@Nonnull TablesKey tableKey);
+ boolean supportsTable(@NonNull TablesKey tableKey);
/**
* Creates Table Adj Rib Out Instance identifier.
* @param tablekey table key
* @return instance identifier.
*/
- @Nonnull
- KeyedInstanceIdentifier<Tables, TablesKey> getRibOutIId(@Nonnull TablesKey tablekey);
+ @NonNull KeyedInstanceIdentifier<Tables, TablesKey> getRibOutIId(@NonNull TablesKey tablekey);
/**
* Returns Peer Role.
*
* @return PeerRole
*/
- @Nonnull
- PeerRole getRole();
+ @NonNull PeerRole getRole();
/**
* Returns Cluster Id.
*
* @return Cluster Id
*/
- @Nullable
- ClusterIdentifier getClusterId();
+ @Nullable ClusterIdentifier getClusterId();
/**
* Returns Local AS.
*
* @return AS
*/
- @Nullable
- AsNumber getLocalAs();
+ @Nullable AsNumber getLocalAs();
}