Module swim.uri
Package swim.uri

Class UriScheme

All Implemented Interfaces:
Comparable<UriScheme>, Debug, Display

public class UriScheme extends UriPart implements Comparable<UriScheme>, Debug, Display
  • Field Details

    • name

      protected final String name
  • Constructor Details

    • UriScheme

      protected UriScheme(String name)
  • Method Details

    • isDefined

      public final boolean isDefined()
    • name

      public final String name()
    • compareTo

      public final int compareTo(UriScheme that)
      Specified by:
      compareTo in interface Comparable<UriScheme>
    • equals

      public final boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • 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 to output.
      Specified by:
      debug in interface Debug
      Returns:
      the continuation of the output.
    • 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 to output.
      Specified by:
      display in interface Display
      Returns:
      the continuation of the output.
    • toString

      public final String toString()
      Overrides:
      toString in class Object
    • undefined

      public static UriScheme undefined()
    • create

      public static UriScheme create(String name)
    • parse

      public static UriScheme parse(String string)