public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static Number |
addNumbers(Number a,
Number b) |
static List<Object> |
asList(Object value) |
static long |
calculateSize(org.bson.BSONObject document) |
static boolean |
containsQueryExpression(Object value) |
static Pattern |
createPattern(String regex,
String options) |
static Object |
getListSafe(Object document,
String field) |
static Object |
getSubdocumentValue(org.bson.BSONObject document,
String key) |
static boolean |
isTrue(Object value) |
static void |
markOkay(org.bson.BSONObject result) |
static Object |
normalizeValue(Object value) |
static boolean |
nullAwareEquals(Object a,
Object b) |
static void |
removeListSafe(Object document,
String key) |
static void |
setListSafe(Object document,
String key,
Object obj) |
public static Object getSubdocumentValue(org.bson.BSONObject document, String key)
public static boolean isTrue(Object value)
public static long calculateSize(org.bson.BSONObject document)
public static boolean containsQueryExpression(Object value)
public static Object getListSafe(Object document, String field) throws IllegalArgumentException
IllegalArgumentExceptionpublic static void markOkay(org.bson.BSONObject result)
Copyright © 2013. All Rights Reserved.