Package com.impossibl.postgres.api.data
Class CidrAddr
- java.lang.Object
-
- com.impossibl.postgres.api.data.InetAddr
-
- com.impossibl.postgres.api.data.CidrAddr
-
public class CidrAddr extends InetAddr
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.impossibl.postgres.api.data.InetAddr
InetAddr.Family
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CidrAddr
parseCidrAddr(String cidrAddr)
void
setAddress(byte[] address)
void
setMaskBits(short maskBits)
-
Methods inherited from class com.impossibl.postgres.api.data.InetAddr
equals, getAddress, getFamily, getMaskAddress, getMaskBits, hashCode, parseInetAddr, parseInetAddr, parseInetAddr, parseN, parseN, toInetAddress, toString
-
-
-
-
Constructor Detail
-
CidrAddr
public CidrAddr(byte[] address, short maskBits) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
CidrAddr
public CidrAddr(String cidrAddress) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
-
Method Detail
-
setAddress
public void setAddress(byte[] address)
- Overrides:
setAddress
in classInetAddr
-
setMaskBits
public void setMaskBits(short maskBits)
- Overrides:
setMaskBits
in classInetAddr
-
parseCidrAddr
public static CidrAddr parseCidrAddr(String cidrAddr) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
-