mirror of
https://github.com/sismics/docs.git
synced 2025-12-12 17:26:13 +00:00
#159: get routes on a document
This commit is contained in:
@@ -34,4 +34,17 @@ public class JsonUtil {
|
||||
}
|
||||
return Json.createObjectBuilder().add("_", value).build().get("_");
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a JsonValue from an Long.
|
||||
*
|
||||
* @param value Value
|
||||
* @return JsonValue
|
||||
*/
|
||||
public static JsonValue nullable(Long value) {
|
||||
if (value == null) {
|
||||
return JsonValue.NULL;
|
||||
}
|
||||
return Json.createObjectBuilder().add("_", value).build().get("_");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user