Package org.kiwiproject.net
Class KiwiInternetAddresses.SimpleHostInfo
java.lang.Object
org.kiwiproject.net.KiwiInternetAddresses.SimpleHostInfo
- Enclosing class:
- KiwiInternetAddresses
Simple value class encapsulating a host name and IP address
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanCreate instance from host name and ip addressfromInetAddress(InetAddress address) Create instance from anInetAddressinthashCode()toString()
-
Method Details
-
fromInetAddress
Create instance from anInetAddress- Parameters:
address- the internet address- Returns:
- a new SimpleHostInfo instance
-
from
Create instance from host name and ip address- Parameters:
hostName- the host nameipAddr- the IP address- Returns:
- a new SimpleHostInfo instance
-
builder
-
getHostName
-
getIpAddr
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-