Package convex.core.util
Class Text
java.lang.Object
convex.core.util.Text
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
dateFormat
(long timestamp) static String
leftPad
(long value, int length) static String
static String
rightPad
(long value, int length) static String
static String
toFriendlyIntString
(double value) static String
toFriendlyNumber
(long value) static String
toPercentString
(double value) static String
whiteSpace
(int length) static void
writeEscapedByte
(BlobBuilder sb, byte b) Writes a UTF-8 byte, escaped as necessary for Java.
-
Constructor Details
-
Text
public Text()
-
-
Method Details
-
whiteSpace
-
leftPad
-
leftPad
-
rightPad
-
rightPad
-
toFriendlyNumber
-
toPercentString
-
toFriendlyIntString
-
dateFormat
-
writeEscapedByte
Writes a UTF-8 byte, escaped as necessary for Java. This works because only single byte ASCII characters need escaping.- Parameters:
sb
- BlobBuilder to append UTF-8 bytesb
- Byte to write
-