Class IdString

java.lang.Object
com.google.gerrit.extensions.restapi.IdString

public class IdString extends Object
Resource identifier split out from a URL.

Identifiers are URL encoded and usually need to be decoded.

  • Method Details

    • fromUrl

      public static IdString fromUrl(String id)
      Construct an identifier from an already encoded string.
    • fromDecoded

      public static IdString fromDecoded(String id)
      Construct an identifier from an already decoded string.
    • get

      public String get()
      Returns the decoded value of the string.
    • isEmpty

      public boolean isEmpty()
      Returns true if the string is the empty string.
    • encoded

      public String encoded()
      Returns the original URL encoding supplied by the client.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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

      public String toString()
      Overrides:
      toString in class Object