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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
encoded()
Returns the original URL encoding supplied by the client.boolean
equals(Object other)
static IdString
fromDecoded(String id)
Construct an identifier from an already decoded string.static IdString
fromUrl(String id)
Construct an identifier from an already encoded string.String
get()
Returns the decoded value of the string.int
hashCode()
boolean
isEmpty()
Returns true if the string is the empty string.String
toString()
-
-
-
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.
-
-