Class IpAddress
java.lang.Object
ru.bgcrm.util.inet.IpAddress
- All Implemented Interfaces:
Serializable, Comparable<IpAddress>
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final intcompare(byte[] v1, int i, int len1, byte[] v2, int j, int len2) intstatic BigIntegerconvertIp4AddressToBigInt(byte[] address) static booleanequals(byte[] a, byte[] a2) booleaninthashCode()static inthashCode(byte[] a) static StringtoString(byte[] address) static voidtoString(byte[] address, StringBuilder sb)
-
Field Details
-
ZERO_ADDRESS
-
IPV6_ZERO_ADDRESS
-
address
public byte[] address
-
-
Constructor Details
-
IpAddress
public IpAddress() -
IpAddress
public IpAddress(byte[] address)
-
-
Method Details
-
hashCode
-
hashCode
public static int hashCode(byte[] a) -
equals
-
equals
public static boolean equals(byte[] a, byte[] a2) -
toString
-
toString
-
compare
public static final int compare(byte[] v1, int i, int len1, byte[] v2, int j, int len2) -
compareTo
- Specified by:
compareToin interfaceComparable<IpAddress>
-
convertIp4AddressToBigInt
- Parameters:
address-- Returns:
-