com.vladmihalcea.hibernate.type.basic
Class Inet

java.lang.Object
  extended by com.vladmihalcea.hibernate.type.basic.Inet
All Implemented Interfaces:
Serializable

public class Inet
extends Object
implements Serializable

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:
Serialized Form

Constructor Summary
Inet(String address)
           
 
Method Summary
 boolean equals(Object o)
           
 String getAddress()
           
 int hashCode()
           
 InetAddress toInetAddress()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Inet

public Inet(String address)
Method Detail

getAddress

public String getAddress()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toInetAddress

public InetAddress toInetAddress()


Copyright © 2020. All rights reserved.