Code example for JsonPrimitive

0
	@Override 
	public boolean isConsumable() { 
		return false; 
	} 
 
	public static JsonPrimitive IDENTIFIER = new JsonPrimitive("f2");
	@Override 
	public JsonObject toJson() {
		JsonArray ret = new JsonArray();
		ret.add(IDENTIFIER);
		ret.add(new JsonPrimitive(this.getId()));
		return Reference.wrapAsReference(ret);
	} 
	 
	public String toString() {
		return "FutureReference(" + this.getId() + ")";
	}