java.lang.Object
tech.deplant.java4ever.framework.Data
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
base64ToHexString
(String base64string) static String
dateTimeToString
(LocalDateTime dateTime) static String
decimalToString
(BigDecimal decimalAmount, int scale) static BigInteger
hexToBigInt
(String hexUint) static BigDecimal
static String
static LocalDateTime
longToDateTime
(long unixTime) static String
padLeftZeros
(String inputString, int length) static BigDecimal
static String
Utility method for preparing hex strings
-
Constructor Details
-
Data
public Data()
-
-
Method Details
-
base64ToHexString
-
longToDateTime
-
dateTimeToString
-
decimalToString
-
hexToBigInt
-
hexToDec
-
strToDec
-
strToHex
Utility method for preparing hex strings- Parameters:
text
- Text string to encode.- Returns:
- Hex string
-
hexToStr
-
padLeftZeros
-