Class TkmDataUtils
- java.lang.Object
-
- com.h2tcoin.takamakachain.tkmdata.utils.TkmDataUtils
-
public class TkmDataUtils extends Object
- Author:
- giovanni.antino@h2tcoin.com
-
-
Constructor Summary
Constructors Constructor Description TkmDataUtils()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConcurrentSkipListMap<Integer,Exception>getExceptionMapper()static String[]getHexKeysArrayByDepth(int depth)static StringgetPaddedHex(int value, int depth)static StringgetString(Object o)static booleanisString(Object o)true if o is a not-null stringstatic StringleftPad(String val, int length, char padChar)static intpow(int base, int exp)voidtestException()static voidthrowsMapException(ConcurrentSkipListMap<Integer,Exception> ex)
-
-
-
Field Detail
-
keys
public static final String[] keys
-
-
Method Detail
-
isString
public static boolean isString(Object o)
true if o is a not-null string- Parameters:
o-- Returns:
-
testException
public void testException() throws NullOptionValue- Throws:
NullOptionValue
-
getHexKeysArrayByDepth
public static String[] getHexKeysArrayByDepth(int depth) throws InvalidDatastructureDepth, IntegerOverflow
- Parameters:
depth-- Returns:
- Throws:
InvalidDatastructureDepthIntegerOverflow
-
pow
public static final int pow(int base, int exp) throws IntegerOverflow- Throws:
IntegerOverflow
-
getPaddedHex
public static final String getPaddedHex(int value, int depth)
-
getExceptionMapper
public static final ConcurrentSkipListMap<Integer,Exception> getExceptionMapper()
-
throwsMapException
public static final void throwsMapException(ConcurrentSkipListMap<Integer,Exception> ex) throws TkmDataException
- Throws:
TkmDataException
-
-