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