Class IdString
java.lang.Object
com.google.gerrit.extensions.restapi.IdString
Resource identifier split out from a URL.
Identifiers are URL encoded and usually need to be decoded.
-
Method Summary
Modifier and TypeMethodDescriptionencoded()
Returns the original URL encoding supplied by the client.boolean
static IdString
fromDecoded
(String id) Construct an identifier from an already decoded string.static IdString
Construct an identifier from an already encoded string.get()
Returns the decoded value of the string.int
hashCode()
boolean
isEmpty()
Returns true if the string is the empty string.toString()
-
Method Details
-
fromUrl
Construct an identifier from an already encoded string. -
fromDecoded
Construct an identifier from an already decoded string. -
get
Returns the decoded value of the string. -
isEmpty
public boolean isEmpty()Returns true if the string is the empty string. -
encoded
Returns the original URL encoding supplied by the client. -
hashCode
public int hashCode() -
equals
-
toString
-