java.lang.Object
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bmp.message.rev200120.Peer.PeerDistinguisher
All Implemented Interfaces:
Serializable, org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.TypeObject, org.opendaylight.yangtools.yang.binding.UnionTypeObject
Enclosing interface:
Peer

public static final class Peer.PeerDistinguisher extends Object implements org.opendaylight.yangtools.yang.binding.UnionTypeObject, Serializable

This class represents the following YANG schema fragment defined in module bmp-message

 leaf peer-distinguisher {
   type union {
     type bgp-t:route-distinguisher;
     type binary {
       length 8;
     }
   }
 }
 
See Also:
  • Constructor Details

    • PeerDistinguisher

      public PeerDistinguisher(RouteDistinguisher _routeDistinguisher)
    • PeerDistinguisher

      public PeerDistinguisher(byte[] _binary)
    • PeerDistinguisher

      public PeerDistinguisher(Peer.PeerDistinguisher source)
      Creates a copy from Source Object.
      Parameters:
      source - Source object
  • Method Details

    • stringValue

      public String stringValue()
      Return a String representing the value of this union.
      Returns:
      String representation of this union's value.
    • getRouteDistinguisher

      public RouteDistinguisher getRouteDistinguisher()
    • getBinary

      public byte[] getBinary()
    • hashCode

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

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

      public String toString()
      Overrides:
      toString in class Object