public enum StringUtils extends Enum<StringUtils>
Modifier and Type | Method and Description |
---|---|
static boolean |
endsWith(CharSequence source,
String endsWith) |
static boolean |
equalsCaseIgnore(CharSequence s,
CharSequence cs) |
static byte[] |
extractBytes(String s) |
static byte[] |
extractBytes(StringBuilder sb) |
static char[] |
extractChars(String s) |
static char[] |
extractChars(StringBuilder sb) |
static String |
firstLowerCase(String str) |
static byte |
getStringCoder(String str) |
static byte |
getStringCoder(StringBuilder str) |
static boolean |
isEqual(CharSequence s,
CharSequence cs) |
static boolean |
isEqual(StringBuilder s,
CharSequence cs) |
static String |
newString(char[] chars) |
static String |
newStringFromBytes(byte[] bytes) |
static double |
parseDouble(CharSequence in) |
static int |
parseInt(CharSequence s,
int radix) |
static long |
parseLong(CharSequence s,
int radix) |
static void |
reverse(StringBuilder text,
int start) |
static void |
set(StringBuilder sb,
CharSequence cs) |
static void |
setCount(StringBuilder sb,
int count) |
static void |
setLength(StringBuilder sb,
int length) |
static String |
toString(Object o) |
static String |
toTitleCase(String name) |
static StringUtils |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StringUtils[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static StringUtils[] values()
for (StringUtils c : StringUtils.values()) System.out.println(c);
public static StringUtils valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static void setLength(@NotNull StringBuilder sb, int length)
public static void set(@NotNull StringBuilder sb, CharSequence cs)
public static boolean endsWith(@NotNull CharSequence source, @NotNull String endsWith)
public static boolean isEqual(@Nullable CharSequence s, @Nullable CharSequence cs)
public static boolean isEqual(@Nullable StringBuilder s, @Nullable CharSequence cs)
public static boolean equalsCaseIgnore(@Nullable CharSequence s, @NotNull CharSequence cs)
public static char[] extractChars(StringBuilder sb)
public static byte getStringCoder(@NotNull String str)
public static byte getStringCoder(@NotNull StringBuilder str)
public static byte[] extractBytes(@NotNull StringBuilder sb)
public static char[] extractChars(@NotNull String s)
public static byte[] extractBytes(@NotNull String s)
public static void setCount(@NotNull StringBuilder sb, int count)
@NotNull public static String newString(@NotNull char[] chars)
@NotNull public static String newStringFromBytes(@NotNull byte[] bytes)
public static double parseDouble(@NotNull CharSequence in)
public static void reverse(StringBuilder text, int start)
public static int parseInt(CharSequence s, int radix) throws NumberFormatException
NumberFormatException
public static long parseLong(CharSequence s, int radix) throws NumberFormatException
NumberFormatException
Copyright © 2020. All rights reserved.