Package org.jboss.netty.handler.ipfilter
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
-
-
Field Summary
-
Fields inherited from class org.jboss.netty.handler.ipfilter.CIDR
baseAddress, cidrMask
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CIDR4(Inet4Address newaddr, int mask)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(CIDR arg)
boolean
contains(InetAddress inetAddress)
Compares the given InetAddress against the CIDR and returns true if the ip is in the subnet-ip-range and false if not.InetAddress
getEndAddress()
-
Methods inherited from class org.jboss.netty.handler.ipfilter.CIDR
equals, getBaseAddress, getIpV4FromIpV6, getIpV6FromIpV4, getMask, hashCode, newCIDR, newCIDR, newCIDR, toString
-
-
-
-
Constructor Detail
-
CIDR4
protected CIDR4(Inet4Address newaddr, int mask)
-
-
Method Detail
-
getEndAddress
public InetAddress getEndAddress()
- Specified by:
getEndAddress
in classCIDR
- 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.
-
-