- java.lang.Object
-
- swim.uri.UriPort
-
- All Implemented Interfaces:
Comparable<UriPort>
,Debug
,Display
public class UriPort extends Object implements Comparable<UriPort>, Debug, Display
-
-
Field Summary
Fields Modifier and Type Field Description protected int
number
-
Constructor Summary
Constructors Modifier Constructor Description protected
UriPort(int number)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(UriPort that)
static UriPort
create(int number)
<T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.<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()
boolean
isDefined()
int
number()
static UriPort
parse(String string)
String
toString()
static UriPort
undefined()
-
-
-
Method Detail
-
isDefined
public final boolean isDefined()
-
number
public final int number()
-
compareTo
public int compareTo(UriPort that)
- Specified by:
compareTo
in interfaceComparable<UriPort>
-
debug
public <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 <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 UriPort undefined()
-
create
public static UriPort create(int number)
-
-