Package org.jboss.netty.handler.ipfilter
Class CIDR6
- java.lang.Object
-
- org.jboss.netty.handler.ipfilter.CIDR
-
- org.jboss.netty.handler.ipfilter.CIDR6
-
- All Implemented Interfaces:
Comparable<CIDR>
public class CIDR6 extends CIDR
-
-
Field Summary
-
Fields inherited from class org.jboss.netty.handler.ipfilter.CIDR
baseAddress, cidrMask
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCIDR6(Inet6Address newaddress, int newmask)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(CIDR arg)booleancontains(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.InetAddressgetEndAddress()-
Methods inherited from class org.jboss.netty.handler.ipfilter.CIDR
equals, getBaseAddress, getIpV4FromIpV6, getIpV6FromIpV4, getMask, hashCode, newCIDR, newCIDR, newCIDR, toString
-
-
-
-
Constructor Detail
-
CIDR6
protected CIDR6(Inet6Address newaddress, int newmask)
-
-
Method Detail
-
getEndAddress
public InetAddress getEndAddress()
- Specified by:
getEndAddressin classCIDR- Returns:
- the end address of this block.
-
compareTo
public int compareTo(CIDR arg)
-
contains
public boolean contains(InetAddress inetAddress)
Description copied from class:CIDRCompares the given InetAddress against the CIDR and returns true if the ip is in the subnet-ip-range and false if not.
-
-