Class Inet4NetworkAddress

  • All Implemented Interfaces:
    java.io.Serializable

    public final class Inet4NetworkAddress
    extends java.lang.Object
    implements java.io.Serializable
    Since:
    pcap4j 0.9.15
    Author:
    Kaito Yamada
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Inet4NetworkAddress​(java.net.Inet4Address networkAddress, java.net.Inet4Address mask)  
    • Method Summary

      Modifier and Type Method Description
      java.net.Inet4Address getMask()  
      java.net.Inet4Address getNetworkAddress()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Inet4NetworkAddress

        public Inet4NetworkAddress​(java.net.Inet4Address networkAddress,
                                   java.net.Inet4Address mask)
        Parameters:
        networkAddress - networkAddress
        mask - mask
    • Method Detail

      • getNetworkAddress

        public java.net.Inet4Address getNetworkAddress()
        Returns:
        networkAddress
      • getMask

        public java.net.Inet4Address getMask()
        Returns:
        mask