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 SummaryAll 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- 
fromUrlpublic static IdString fromUrl(String id) Construct an identifier from an already encoded string.
 - 
fromDecodedpublic static IdString fromDecoded(String id) Construct an identifier from an already decoded string.
 - 
getpublic String get() Returns the decoded value of the string.
 - 
isEmptypublic boolean isEmpty() Returns true if the string is the empty string.
 - 
encodedpublic String encoded() Returns the original URL encoding supplied by the client.
 
- 
 
-