Package org.kiwiproject.net
Class KiwiInternetAddresses.SimpleHostInfo
- java.lang.Object
-
- org.kiwiproject.net.KiwiInternetAddresses.SimpleHostInfo
-
- Enclosing class:
- KiwiInternetAddresses
public static class KiwiInternetAddresses.SimpleHostInfo extends Object
Simple value class encapsulating a host name and IP address
-
-
Constructor Summary
Constructors Constructor Description SimpleHostInfo()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KiwiInternetAddresses.SimpleHostInfofrom(String hostName, String ipAddr)Create instance from host name and ip addressstatic KiwiInternetAddresses.SimpleHostInfofromInetAddress(InetAddress address)Create instance from anInetAddress
-
-
-
Method Detail
-
fromInetAddress
public static KiwiInternetAddresses.SimpleHostInfo fromInetAddress(InetAddress address)
Create instance from anInetAddress- Parameters:
address- the internet address- Returns:
- a new SimpleHostInfo instance
-
from
public static KiwiInternetAddresses.SimpleHostInfo from(String hostName, String ipAddr)
Create instance from host name and ip address- Parameters:
hostName- the host nameipAddr- the IP address- Returns:
- a new SimpleHostInfo instance
-
-