public enum StringUtils extends Enum<StringUtils>
| Modifier and Type | Method and Description |
|---|---|
static boolean |
endsWith(@NotNull CharSequence source,
@NotNull String endsWith) |
static boolean |
equalsCaseIgnore(@Nullable CharSequence s,
@NotNull CharSequence cs) |
static byte[] |
extractBytes(@NotNull String s) |
static byte[] |
extractBytes(@NotNull StringBuilder sb) |
static char[] |
extractChars(@NotNull String s) |
static char[] |
extractChars(StringBuilder sb) |
static @Nullable String |
firstLowerCase(@Nullable String str) |
static byte |
getStringCoder(@NotNull String str) |
static byte |
getStringCoder(@NotNull StringBuilder str) |
static boolean |
isEqual(@Nullable CharSequence s,
@Nullable CharSequence cs) |
static boolean |
isEqual(@Nullable StringBuilder s,
@Nullable CharSequence cs) |
static @NotNull String |
newString(@NotNull char[] chars) |
static @NotNull String |
newStringFromBytes(@NotNull byte[] bytes) |
static double |
parseDouble(@NotNull 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(@NotNull StringBuilder sb,
CharSequence cs) |
static void |
setCount(@NotNull StringBuilder sb,
int count) |
static void |
setLength(@NotNull StringBuilder sb,
int length) |
static @Nullable String |
toString(@Nullable Object o) |
static @Nullable String |
toTitleCase(@Nullable 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
@NotNull StringBuilder sb,
int length)
public static void set(@NotNull
@NotNull StringBuilder sb,
CharSequence cs)
public static boolean endsWith(@NotNull
@NotNull CharSequence source,
@NotNull
@NotNull String endsWith)
public static boolean isEqual(@Nullable
@Nullable CharSequence s,
@Nullable
@Nullable CharSequence cs)
public static boolean isEqual(@Nullable
@Nullable StringBuilder s,
@Nullable
@Nullable CharSequence cs)
public static boolean equalsCaseIgnore(@Nullable
@Nullable CharSequence s,
@NotNull
@NotNull CharSequence cs)
public static char[] extractChars(StringBuilder sb)
public static byte getStringCoder(@NotNull
@NotNull String str)
public static byte getStringCoder(@NotNull
@NotNull StringBuilder str)
public static byte[] extractBytes(@NotNull
@NotNull StringBuilder sb)
public static char[] extractChars(@NotNull
@NotNull String s)
public static byte[] extractBytes(@NotNull
@NotNull String s)
public static void setCount(@NotNull
@NotNull StringBuilder sb,
int count)
@NotNull public static @NotNull String newString(@NotNull @NotNull char[] chars)
@NotNull public static @NotNull String newStringFromBytes(@NotNull @NotNull byte[] bytes)
@Nullable public static @Nullable String firstLowerCase(@Nullable @Nullable String str)
public static double parseDouble(@NotNull
@NotNull CharSequence in)
public static void reverse(StringBuilder text, int start)
public static int parseInt(CharSequence s, int radix) throws NumberFormatException
NumberFormatExceptionpublic static long parseLong(CharSequence s, int radix) throws NumberFormatException
NumberFormatExceptionCopyright © 2020. All rights reserved.