public class Inet extends Object implements Serializable
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.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getAddress() |
int |
hashCode() |
InetAddress |
toInetAddress()
Get the associated
InetAddress for the current address . |
public Inet(String address)
public String getAddress()
public InetAddress toInetAddress()
InetAddress
for the current address
.InetAddress
Copyright © 2022. All rights reserved.