Package de.caluga.morphium
Class Utils
- java.lang.Object
-
- de.caluga.morphium.Utils
-
public class Utils extends Object
Utility class
-
-
Constructor Summary
Constructors Constructor Description Utils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetCacheKey(Class type, Map<String,Object> qo, Map<String,Integer> sort, Map<String,Object> projection, String collection, int skip, int limit, AnnotationAndReflectionHelper anHelper)static StringgetHex(byte by)static StringgetHex(byte[] b)static StringgetHex(byte[] b, int sz)static StringgetHex(int i)static StringgetHex(long i)static <T,U>
Map<T,U>getMap(T k, U v)static Map<String,Object>getNoExprMap(Map<Object,Object> map)static Map<String,Object>getQueryObjectMap(Map<String,Expr> exprMap)static StringtoJsonString(Object o)static voidwriteJson(Object o, Writer out)
-
-
-
Field Detail
-
hexChars
public static final String[] hexChars
-
-
Method Detail
-
getMap
public static <T,U> Map<T,U> getMap(T k, U v)
-
writeJson
public static void writeJson(Object o, Writer out) throws IOException
- Throws:
IOException
-
getHex
public static String getHex(long i)
-
getHex
public static String getHex(int i)
-
getHex
public static String getHex(byte[] b)
-
getHex
public static String getHex(byte[] b, int sz)
-
getHex
public static String getHex(byte by)
-
getCacheKey
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)
-
-