Class CIDR4

    • Constructor Detail

      • CIDR4

        protected CIDR4​(Inet4Address newaddr,
                        int mask)
    • Method Detail

      • compareTo

        public int compareTo​(CIDR arg)
      • contains

        public boolean contains​(InetAddress inetAddress)
        Description copied from class: CIDR
        Compares the given InetAddress against the CIDR and returns true if the ip is in the subnet-ip-range and false if not.
        Specified by:
        contains in class CIDR
        Returns:
        returns true if the given IP address is inside the currently set network.