public class Utils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Utils.UtilsMap<K,V> |
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getCacheKey(Class type,
Map<String,Object> qo,
Map<String,Integer> sort,
Map<String,Object> projection,
String collection,
int skip,
int limit,
AnnotationAndReflectionHelper anHelper) |
static String |
getHex(byte by) |
static String |
getHex(byte[] b) |
static String |
getHex(byte[] b,
int sz) |
static String |
getHex(int i) |
static String |
getHex(long i) |
static Utils.UtilsMap<String,Integer> |
getIntMap(String key,
Integer value) |
static <K,V> Utils.UtilsMap<K,V> |
getMap(K key,
V value) |
static Map<String,Object> |
getNoExprMap(Map<Object,Object> map) |
static Map<String,Object> |
getQueryObjectMap(Map<String,Expr> exprMap) |
static Collection |
replaceMorphiumIds(Collection value) |
static Object |
replaceMorphiumIds(Map m) |
static String |
toJsonString(Object o) |
static void |
writeJson(Object o,
Writer out) |
public static final String[] hexChars
public static void writeJson(Object o, Writer out) throws IOException
IOExceptionpublic static <K,V> Utils.UtilsMap<K,V> getMap(K key, V value)
public static Utils.UtilsMap<String,Integer> getIntMap(String key, Integer value)
public static String getHex(long i)
public static String getHex(int i)
public static String getHex(byte[] b)
public static String getHex(byte[] b, int sz)
public static String getHex(byte by)
public static String getCacheKey(Class type, Map<String,Object> qo, Map<String,Integer> sort, Map<String,Object> projection, String collection, int skip, int limit, AnnotationAndReflectionHelper anHelper)
public static Collection replaceMorphiumIds(Collection value)
Copyright © 2021. All rights reserved.