@Deprecated public class StringUtils extends Object
Constructor | Description |
---|---|
StringUtils() |
Deprecated.
|
Modifier and Type | Method | Description |
---|---|---|
static void |
appendCompactedString(StringBuilder destination,
String source) |
Deprecated.
This method appends a string to a string builder and collapses contiguous
white space is a single space.
|
static boolean |
beginsWithIgnoreCase(String data,
String seq) |
Deprecated.
Performs a case insensitive comparison and returns true if the data
begins with the given sequence.
|
static int |
compare(String str1,
String str2) |
Deprecated.
Compare two strings with Locale.ENGLISH
This method is preferred over String.compareTo() method.
|
static String |
fromBoolean(Boolean value) |
Deprecated.
|
static String |
fromByte(Byte b) |
Deprecated.
Returns the string representation of the specified Byte.
|
static String |
fromByteBuffer(ByteBuffer byteBuffer) |
Deprecated.
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 |
fromDate(Date value) |
Deprecated.
Converts the specified date to an ISO 8601 timestamp string and returns
it.
|
static String |
fromDouble(Double d) |
Deprecated.
Returns the string representation of the specified double.
|
static String |
fromFloat(Float value) |
Deprecated.
|
static String |
fromInteger(Integer value) |
Deprecated.
|
static String |
fromLong(Long value) |
Deprecated.
|
static String |
fromString(String value) |
Deprecated.
|
static boolean |
hasValue(String str) |
Deprecated.
|
static boolean |
isNotBlank(String str) |
Deprecated.
|
static boolean |
isNullOrEmpty(String value) |
Deprecated.
|
static String |
join(String joiner,
String... parts) |
Deprecated.
Joins the strings in parts with joiner between each string
|
static String |
lowerCase(String str) |
Deprecated.
Converts a given String to lower case with Locale.ENGLISH
|
static String |
replace(String originalString,
String partToMatch,
String replacement) |
Deprecated.
|
static String |
toString(StringBuilder value) |
Deprecated.
|
static String |
trim(String value) |
Deprecated.
A null-safe trim method.
|
static String |
upperCase(String str) |
Deprecated.
Converts a given String to upper case with Locale.ENGLISH
|
public static final Charset UTF8
public static String toString(StringBuilder value)
public static String fromDate(Date value)
value
- The date 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.public static String replace(String originalString, String partToMatch, String replacement)
public static String join(String joiner, String... parts)
joiner
- the string to insert between the strings in partsparts
- the parts to joinpublic static String trim(String value)
public static boolean isNullOrEmpty(String value)
public static boolean hasValue(String str)
public static boolean isNotBlank(String str)
public static String lowerCase(String str)
str
- the string to be converted to lower casepublic static String upperCase(String str)
str
- the string to be converted to upper casepublic static int compare(String str1, String str2)
str1
- String 1str2
- String 2IllegalArgumentException
- throws exception if both or either of the strings is nullpublic static void appendCompactedString(StringBuilder destination, String source)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.