Package com.impossibl.postgres.api.data
Class InetAddr
- java.lang.Object
-
- com.impossibl.postgres.api.data.InetAddr
-
- Direct Known Subclasses:
CidrAddr
public class InetAddr extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInetAddr.Family
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)byte[]getAddress()InetAddr.FamilygetFamily()byte[]getMaskAddress()intgetMaskBits()inthashCode()static InetAddrparseInetAddr(java.lang.String inetAddr)static InetAddrparseInetAddr(java.lang.String inetAddr, boolean allowShorthandNotation)static InetAddrparseInetAddr(java.lang.String inetAddr, boolean allowShortNotation, InetAddr.Family family)protected static java.lang.Object[]parseN(java.lang.String inetAddr, boolean allowShortNotation)protected static java.lang.Object[]parseN(java.lang.String inetAddr, boolean allowShortNotation, InetAddr.Family family)voidsetAddress(byte[] address)voidsetMaskBits(short maskBits)java.net.InetAddresstoInetAddress()java.lang.StringtoString()
-
-
-
Method Detail
-
getFamily
public InetAddr.Family getFamily()
-
getAddress
public byte[] getAddress()
-
setAddress
public void setAddress(byte[] address)
-
getMaskAddress
public byte[] getMaskAddress()
-
getMaskBits
public int getMaskBits()
-
setMaskBits
public void setMaskBits(short maskBits)
-
parseInetAddr
public static InetAddr parseInetAddr(java.lang.String inetAddr)
-
parseInetAddr
public static InetAddr parseInetAddr(java.lang.String inetAddr, boolean allowShorthandNotation)
-
parseInetAddr
public static InetAddr parseInetAddr(java.lang.String inetAddr, boolean allowShortNotation, InetAddr.Family family)
-
parseN
protected static java.lang.Object[] parseN(java.lang.String inetAddr, boolean allowShortNotation)
-
parseN
protected static java.lang.Object[] parseN(java.lang.String inetAddr, boolean allowShortNotation, InetAddr.Family family)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toInetAddress
public java.net.InetAddress toInetAddress()
-
-