Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Creative commons Attribution-NonCommercial license. http://creativecommons.org/licenses/by-nc/2.5/au/deed.en_GB NO WARRANTY IS GIVEN OR IMPLIED, USE AT YOUR OWN RISK.
 
 package base.security;
 
public class ResourceUid implements QueryResult {
	private String type;
	private String uid;
	public ResourceUid(String typeUUID uid) {
		this. = type;
		this. = uid.toString();
	}
	public ResourceUid(String typeString uid) {
		this. = type;
		this. = uid;
	}
	public ResourceUid(String typelong uid) {
		this. = type;
		this. = ""+uid;
	}
	public String getType() {
		return ;
	}
	public String getUid() {
		return ;
	}
	public String toString() {
		return toJson();
	}
	public String toJson() {
		return "{\"type\":\""+Json.escape()+"\", \"uid\":\""+Json.escape()+"\"}";
	}
New to GrepCode? Check out our FAQ X