Class Inet
java.lang.Object
io.hypersistence.utils.hibernate.type.basic.Inet
- All Implemented Interfaces:
Serializable,Comparable<Inet>
The
Inet object type is used to represent an IP address.
For more details about how to use it, check out this article on vladmihalcea.com.
- Author:
- Vlad Mihalcea
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCompares the stored address strings lexicographically, without normalizing IP addresses or applying PostgreSQL network ordering.booleaninthashCode()Get the associatedInetAddressfor the currentaddress.
-
Constructor Details
-
Inet
-
-
Method Details
-
getAddress
-
compareTo
Compares the stored address strings lexicographically, without normalizing IP addresses or applying PostgreSQL network ordering. Null addresses sort first.- Specified by:
compareToin interfaceComparable<Inet>- Parameters:
other- the Inet to compare to- Returns:
- the comparison result
-
equals
-
hashCode
public int hashCode() -
toInetAddress
Get the associatedInetAddressfor the currentaddress.- Returns:
- the associated
InetAddress
-