public class CIDR4 extends CIDR
baseAddress, cidrMask
Modifier | Constructor and Description |
---|---|
protected |
CIDR4(Inet4Address newaddr,
int mask) |
Modifier and Type | Method and 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() |
equals, getBaseAddress, getIpV4FromIpV6, getIpV6FromIpV4, getMask, hashCode, newCIDR, newCIDR, newCIDR, toString
protected CIDR4(Inet4Address newaddr, int mask)
public InetAddress getEndAddress()
getEndAddress
in class CIDR
public int compareTo(CIDR arg)
public boolean contains(InetAddress inetAddress)
CIDR
Copyright © 2008-2016 The Netty Project. All Rights Reserved.