- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
44 lines
1.1 KiB
Java
44 lines
1.1 KiB
Java
package com.amazonaws.util;
|
|
|
|
import java.nio.charset.Charset;
|
|
import java.util.Locale;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class StringUtils {
|
|
public static final Charset UTF8 = Charset.forName("UTF-8");
|
|
|
|
public static String fromString(String str) {
|
|
return str;
|
|
}
|
|
|
|
public static String fromInteger(Integer num) {
|
|
return Integer.toString(num.intValue());
|
|
}
|
|
|
|
public static String lowerCase(String str) {
|
|
if (str == null) {
|
|
return null;
|
|
}
|
|
return str.isEmpty() ? "" : str.toLowerCase(Locale.ENGLISH);
|
|
}
|
|
|
|
public static String upperCase(String str) {
|
|
if (str == null) {
|
|
return null;
|
|
}
|
|
return str.isEmpty() ? "" : str.toUpperCase(Locale.ENGLISH);
|
|
}
|
|
|
|
public static boolean isBlank(CharSequence charSequence) {
|
|
int length;
|
|
if (charSequence != null && (length = charSequence.length()) != 0) {
|
|
for (int i = 0; i < length; i++) {
|
|
if (!Character.isWhitespace(charSequence.charAt(i))) {
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
}
|