Class IdString


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

    Identifiers are URL encoded and usually need to be decoded.

    • Method Detail

      • 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