- java.lang.Object
-
- swim.uri.UriPart
-
- swim.uri.UriFragment
-
- All Implemented Interfaces:
Comparable<UriFragment>
,Debug
,Display
public class UriFragment extends UriPart implements Comparable<UriFragment>, Debug, Display
-
-
Field Summary
Fields Modifier and Type Field Description protected String
identifier
-
Constructor Summary
Constructors Modifier Constructor Description protected
UriFragment(String identifier)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(UriFragment that)
static UriFragment
create(String identifier)
<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()
String
identifier()
boolean
isDefined()
static UriFragment
parse(String string)
String
toString()
static UriFragment
undefined()
-
-
-
Field Detail
-
identifier
protected final String identifier
-
-
Constructor Detail
-
UriFragment
protected UriFragment(String identifier)
-
-
Method Detail
-
isDefined
public final boolean isDefined()
-
identifier
public String identifier()
-
compareTo
public final int compareTo(UriFragment that)
- Specified by:
compareTo
in interfaceComparable<UriFragment>
-
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 UriFragment undefined()
-
create
public static UriFragment create(String identifier)
-
parse
public static UriFragment parse(String string)
-
-