Class CIDR4

java.lang.Object
org.jboss.netty.handler.ipfilter.CIDR
org.jboss.netty.handler.ipfilter.CIDR4
All Implemented Interfaces:
Comparable<CIDR>

public class CIDR4 extends CIDR
  • Constructor Details

  • Method Details

    • getEndAddress

      public InetAddress getEndAddress()
      Specified by:
      getEndAddress in class CIDR
      Returns:
      the end address of this block.
    • 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.