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
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.net.Inet4Address mask  
      private java.net.Inet4Address networkAddress  
      private static long serialVersionUID  
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      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
    • Field Detail

      • networkAddress

        private final java.net.Inet4Address networkAddress
      • mask

        private final java.net.Inet4Address mask
    • 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