Class RouterId
- java.lang.Object
-
- org.opendaylight.protocol.bgp.rib.spi.RouterId
-
- All Implemented Interfaces:
Comparable<RouterId>
,org.opendaylight.yangtools.concepts.Immutable
,org.opendaylight.yangtools.concepts.MutationBehaviour<org.opendaylight.yangtools.concepts.Immutable>
public final class RouterId extends Object implements Comparable<RouterId>, org.opendaylight.yangtools.concepts.Immutable
The concept of a Router Identifier.- Author:
- Robert Varga
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(RouterId o)
boolean
equals(Object obj)
static RouterId
forAddress(String address)
Get a router ID in unsigned integer format from an Ipv4Address.static RouterId
forAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address address)
Get a router ID in unsigned integer format from an Ipv4Address.static RouterId
forPeerId(PeerId peerId)
@NonNull PeerId
getPeerId()
int
hashCode()
String
toString()
-
-
-
Method Detail
-
forAddress
public static RouterId forAddress(String address)
Get a router ID in unsigned integer format from an Ipv4Address. This implementation uses an internal cache, so the objects can be expected to perform quickly when compared with equals and similar.- Parameters:
address
- Router ID as a dotted-quad- Returns:
- Router ID
-
forAddress
public static RouterId forAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address address)
Get a router ID in unsigned integer format from an Ipv4Address. This implementation uses an internal cache, so the objects can be expected to perform quickly when compared with equals and similar.- Parameters:
address
- Router ID as an Ipv4Address- Returns:
- Router ID
-
getPeerId
public @NonNull PeerId getPeerId()
-
compareTo
public int compareTo(RouterId o)
- Specified by:
compareTo
in interfaceComparable<RouterId>
-
-