Class NetworkInterface.Inet4AddressWithNetmask

  • Enclosing class:
    NetworkInterface<A>

    public static class NetworkInterface.Inet4AddressWithNetmask
    extends java.lang.Object
    Helper class for wrapping an IPv4 address together with its netmask.
    • Constructor Detail

      • Inet4AddressWithNetmask

        public Inet4AddressWithNetmask​(java.net.Inet4Address inet4Address,
                                       int netmask)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object