Class BgpTableTypeImpl

java.lang.Object
org.opendaylight.protocol.bgp.parser.BgpTableTypeImpl
All Implemented Interfaces:
BgpTableType, org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>, org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject

public final class BgpTableTypeImpl extends Object implements BgpTableType
Utility class identifying a BGP table type. A table type is formed by two identifiers: AFI and SAFI.
  • Constructor Details

    • BgpTableTypeImpl

      public BgpTableTypeImpl(AddressFamily afi, SubsequentAddressFamily safi)
      Creates BGP Table type.
      Parameters:
      afi - Address Family Identifier
      safi - Subsequent Address Family Identifier
  • Method Details

    • implementedInterface

      public Class<BgpTableType> implementedInterface()
      Specified by:
      implementedInterface in interface BgpTableType
      Specified by:
      implementedInterface in interface org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
      Specified by:
      implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getAfi

      public AddressFamily getAfi()
      Returns Address Family Identifier.
      Specified by:
      getAfi in interface BgpTableType
      Returns:
      afi AFI
    • getSafi

      public SubsequentAddressFamily getSafi()
      Returns Subsequent Address Family Identifier.
      Specified by:
      getSafi in interface BgpTableType
      Returns:
      safi SAFI