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 Stringencoded()Returns the original URL encoding supplied by the client.booleanequals(Object other)static IdStringfromDecoded(String id)Construct an identifier from an already decoded string.static IdStringfromUrl(String id)Construct an identifier from an already encoded string.Stringget()Returns the decoded value of the string.inthashCode()booleanisEmpty()Returns true if the string is the empty string.StringtoString()
-
-
-
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.
-
-