java.lang.Object
org.opendaylight.yang.gen.v1.http.openconfig.net.yang.types.inet.rev210107.IpAddress
All Implemented Interfaces:
Serializable, org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.TypeObject, org.opendaylight.yangtools.yang.binding.UnionTypeObject

@Generated("mdsal-binding-generator") public class IpAddress extends Object implements org.opendaylight.yangtools.yang.binding.UnionTypeObject, Serializable

This class represents the following YANG schema fragment defined in module openconfig-inet-types

 typedef ip-address {
   type union {
     type ipv4-address;
     type ipv6-address;
   }
 }
 
See Also:
  • Field Details

    • PATTERN_CONSTANTS

      public static final List<String> PATTERN_CONSTANTS
  • Constructor Details

    • IpAddress

      public IpAddress(Ipv4Address _ipv4Address)
    • IpAddress

      public IpAddress(Ipv6Address _ipv6Address)
    • IpAddress

      public IpAddress(IpAddress 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.
    • getIpv4Address

      public Ipv4Address getIpv4Address()
    • getIpv6Address

      public Ipv6Address getIpv6Address()
    • 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