| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final long | |
| private static final long | |
| private static final char[] | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static String | Returns: the capitalized String,null if null String inputthe String to capitalize, may be null str)Borrowed from commons-lang |
| public static String | Returns: common prefix of all StringsStrings to consider strings)Compares Strings and returns the initial sequence of characters that is common to all of them. |
| public static int | Returns: an int.first string to compare. a, String second string to compare. b)Compare two strings, ignoring case. |
| public static int | Returns: an int.first string to compare. a, String second string to compare. b)Compare two strings, honoring case. |
| public static boolean | Returns: true if a equals bfirst string to compare. a, String second string to compare. b)Test if two strings are equal, ignoring case. |
| public static String | Returns: the value's String representationValue to format value)Formats an integral value as a decimal number with 'k', 'm', or 'g' suffix if it is an exact multiple of 1024, otherwise returns the value representation as a decimal number without suffix. |
| public static boolean | Returns: true if the string is null or emptythe string to check stringValue)Test if a string is empty or null. |
| public static String | Returns: a String with all the joined partsStrings to join parts, String used to join separator)Join a collection of Strings together using the specified separator. |
| public static String | Returns: a String with all the joined partsStrings to join parts, String separator used to join all but the two last elements separator, String separator to use for joining the last two elements lastSeparator)Join a collection of Strings together using the specified separator and a lastSeparator which is used for joining the second last and the last part. |
| public static String | Returns: the name ending withConstants#DOT_GIT_EXTto complete name)Appends |
| public static int | Returns: the value parsedString to parse; with leading and trailing whitespace
ignoredtrue to only accept positive numbers, false to
allow negative numbers, tooParses a number with optional case-insensitive suffix 'k', 'm', or 'g' indicating KiB, MiB, and GiB, respectively. |
| public static long | Returns: the value parsedString to parse; with leading and trailing whitespace
ignoredtrue to only accept positive numbers, false to
allow negative numbers, tooParses a number with optional case-insensitive suffix 'k', 'm', or 'g' indicating KiB, MiB, and GiB, respectively. |
| public static String | Returns: in without line breaksA string with line breaks in)Replace CRLF, CR or LF with a single space. |
| public static boolean | |
| public static Boolean | Returns: the boolean interpretation ofvalue or null in case the
string does not represent a boolean valuethe string to parse. stringValue)Parse a string as a standard Git boolean value. |
| public static char | Returns: lowercase version of the input.the input character. c)Convert the input to lowercase. |
| public static String | Returns: a copy of the input string, after converting characters in the range 'A'..'Z' to 'a'..'z'.the input string. Must not be null. in)Convert the input string to lower case, according to the "C" locale. |
| public static String |
| EMPTY | back to summary |
|---|---|
| private static final String EMPTY | |
| GiB | back to summary |
|---|---|
| private static final long GiB | |
| KiB | back to summary |
|---|---|
| private static final long KiB | |
| LC | back to summary |
|---|---|
| private static final char[] LC | |
| MiB | back to summary |
|---|---|
| private static final long MiB | |
| StringUtils | back to summary |
|---|---|
| private StringUtils() | |
| capitalize | back to summary |
|---|---|
| public static String capitalize(String str) Borrowed from commons-lang
Capitalizes a String changing the first letter to title case as per
A | |
| commonPrefix | back to summary |
|---|---|
| public static String commonPrefix(String... strings) Compares Strings and returns the initial sequence of characters that is common to all of them. | |
| compareIgnoreCase | back to summary |
|---|---|
| public static int compareIgnoreCase(String a, String b) Compare two strings, ignoring case. This method does not honor the JVM locale, but instead always behaves as though it is in the US-ASCII locale. | |
| compareWithCase | back to summary |
|---|---|
| public static int compareWithCase(String a, String b) Compare two strings, honoring case. This method does not honor the JVM locale, but instead always behaves as though it is in the US-ASCII locale. | |
| equalsIgnoreCase | back to summary |
|---|---|
| public static boolean equalsIgnoreCase(String a, String b) Test if two strings are equal, ignoring case. This method does not honor the JVM locale, but instead always behaves as though it is in the US-ASCII locale. | |
| formatWithSuffix | back to summary |
|---|---|
| public static String formatWithSuffix(long value) Formats an integral value as a decimal number with 'k', 'm', or 'g' suffix if it is an exact multiple of 1024, otherwise returns the value representation as a decimal number without suffix.
| |
| isEmptyOrNull | back to summary |
|---|---|
| public static boolean isEmptyOrNull(String stringValue) Test if a string is empty or null.
| |
| join | back to summary |
|---|---|
| public static String join(Collection<String> parts, String separator) Join a collection of Strings together using the specified separator.
| |
| join | back to summary |
|---|---|
| public static String join(Collection<String> parts, String separator, String lastSeparator) Join a collection of Strings together using the specified separator and a lastSeparator which is used for joining the second last and the last part.
| |
| nameWithDotGit | back to summary |
|---|---|
| public static String nameWithDotGit(String name) Appends
| |
| parseIntWithSuffix | back to summary |
|---|---|
| public static int parseIntWithSuffix(String value, boolean positiveOnly) throws NumberFormatException, StringIndexOutOfBoundsException Parses a number with optional case-insensitive suffix 'k', 'm', or 'g' indicating KiB, MiB, and GiB, respectively. The suffix may follow the number with optional separation by blanks.
| |
| parseLongWithSuffix | back to summary |
|---|---|
| public static long parseLongWithSuffix(String value, boolean positiveOnly) throws NumberFormatException, StringIndexOutOfBoundsException Parses a number with optional case-insensitive suffix 'k', 'm', or 'g' indicating KiB, MiB, and GiB, respectively. The suffix may follow the number with optional separation by one or more blanks.
| |
| replaceLineBreaksWithSpace | back to summary |
|---|---|
| public static String replaceLineBreaksWithSpace(String in) Replace CRLF, CR or LF with a single space. | |
| toBoolean | back to summary |
|---|---|
| public static boolean toBoolean(String stringValue) Parse a string as a standard Git boolean value. See
| |
| toBooleanOrNull | back to summary |
|---|---|
| public static Boolean toBooleanOrNull(String stringValue) Parse a string as a standard Git boolean value.
The terms
The terms
Comparisons ignore case, via | |
| toLowerCase | back to summary |
|---|---|
| public static char toLowerCase(char c) Convert the input to lowercase. This method does not honor the JVM locale, but instead always behaves as though it is in the US-ASCII locale. Only characters in the range 'A' through 'Z' are converted. All other characters are left as-is, even if they otherwise would have a lowercase character equivalent.
| |
| toLowerCase | back to summary |
|---|---|
| public static String toLowerCase(String in) Convert the input string to lower case, according to the "C" locale. This method does not honor the JVM locale, but instead always behaves as though it is in the US-ASCII locale. Only characters in the range 'A' through 'Z' are converted, all other characters are left as-is, even if they otherwise would have a lowercase character equivalent. | |
| trim | back to summary |
|---|---|
| public static String trim(String str, char c) Remove the specified character from beginning and end of a string If the character repeats, all copies | |