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 String
getPaddedHex(int value, int depth)
static String
getString(Object o)
static boolean
isString(Object o)
true if o is a not-null stringstatic String
leftPad(String val, int length, char padChar)
static int
pow(int base, int exp)
void
testException()
static void
throwsMapException(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:
InvalidDatastructureDepth
IntegerOverflow
-
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
-
-