public class StringConversion extends Object
Modifier and Type | Method and Description |
---|---|
static String |
fromBoolean(Boolean value) |
static String |
fromByte(Byte b)
Returns the string representation of the specified Byte.
|
static String |
fromByteBuffer(ByteBuffer byteBuffer)
Base64 encodes the data in the specified byte buffer (from the current
position to the buffer's limit) and returns it as a base64 encoded
string.
|
static String |
fromDouble(Double d)
Returns the string representation of the specified double.
|
static String |
fromFloat(Float value) |
static String |
fromInstant(Instant value)
Converts the specified instant to an ISO 8601 timestamp string and
returns it.
|
static String |
fromInteger(Integer value) |
static String |
fromLong(Long value) |
static String |
fromSdkBytes(SdkBytes sdkBytes)
Base64 encodes the data in the specified sdk bytes.
|
static String |
fromString(String value) |
public static String fromInstant(Instant value)
value
- The instant to format as an ISO 8601 timestamp string.public static String fromDouble(Double d)
d
- The double to represent as a string.public static String fromByte(Byte b)
b
- The Byte to represent as a string.public static String fromByteBuffer(ByteBuffer byteBuffer)
byteBuffer
- The data to base64 encode and return as a string; must not be
null.Copyright © 2018. All rights reserved.