- java.lang.Object
-
- swim.uri.UriHost
-
- All Implemented Interfaces:
Comparable<UriHost>
,Debug
,Display
public abstract class UriHost extends Object implements Comparable<UriHost>, Debug, Display
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UriHost()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract String
address()
int
compareTo(UriHost that)
abstract <T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.abstract <T> Output<T>
display(Output<T> output)
Writes a human readable, display-formatted string representation of this object tooutput
.boolean
equals(Object other)
int
hashCode()
InetAddress
inetAddress()
static UriHost
inetAddress(InetAddress address)
String
ipv4()
static UriHost
ipv4(String address)
String
ipv6()
static UriHost
ipv6(String address)
boolean
isDefined()
String
name()
static UriHost
name(String address)
static UriHost
parse(String string)
abstract String
toString()
static UriHost
undefined()
-
-
-
Method Detail
-
isDefined
public boolean isDefined()
-
address
public abstract String address()
-
name
public String name()
-
ipv4
public String ipv4()
-
ipv6
public String ipv6()
-
inetAddress
public InetAddress inetAddress() throws UnknownHostException
- Throws:
UnknownHostException
-
compareTo
public final int compareTo(UriHost that)
- Specified by:
compareTo
in interfaceComparable<UriHost>
-
debug
public abstract <T> Output<T> debug(Output<T> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
display
public abstract <T> Output<T> display(Output<T> output)
Description copied from interface:Display
Writes a human readable, display-formatted string representation of this object tooutput
.
-
undefined
public static UriHost undefined()
-
inetAddress
public static UriHost inetAddress(InetAddress address)
-
-