| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static String | |
| public static <T extends Number> T | |
| public static <T> T | |
| public static <T extends Number> T | |
| public static String | |
| public static String | |
| public static String | |
| public static String | Returns: string with ASCII characters 10 and 13 replaced by the text "\n" and "\r".
|
| public static StringBuilder | indent(StringBuilder builder, int indentLevel)
Make an indent by appending indentLevel tab characters to the builder. |
| public static <E> int | indexOfElementByObjectIdentity(List<E> list, E o)
Like |
| public static <E> boolean | |
| public static String | |
| public static String | Returns: content with all kinds of EOL characters replaced by endOfLineCharacter
|
| public static String | |
| public static <E> void | |
| public static String | Returns: the filename with the last "." and everything following it removed.
|
| public static <E> void | replaceElementByObjectIdentity(List<E> list, E oldObject, E newObject)
Like |
| public static String | |
| public static <T> Set | |
| private static String | |
| public static String | |
| public static String | |
| public static boolean | Returns: true if the value is null, an empty Optional, or an empty String.
|
| public static boolean |
| EOL | back to summary |
|---|---|
| public static final String EOL | |
| Utils | back to summary |
|---|---|
| public Utils() | |
| assertNonEmpty | back to summary |
|---|---|
| public static String assertNonEmpty(String string) | |
| assertNonNegative | back to summary |
|---|---|
| public static <T extends Number> T assertNonNegative(T number) | |
| assertNotNull | back to summary |
|---|---|
| public static <T> T assertNotNull(T o) | |
| assertPositive | back to summary |
|---|---|
| public static <T extends Number> T assertPositive(T number) | |
| camelCaseToScreaming | back to summary |
|---|---|
| public static String camelCaseToScreaming(String input) | |
| capitalize | back to summary |
|---|---|
| public static String capitalize(String s) Capitalizes the first character in the string. | |
| decapitalize | back to summary |
|---|---|
| public static String decapitalize(String s) Lower-cases the first character in the string. | |
| escapeEndOfLines | back to summary |
|---|---|
public static String escapeEndOfLines(String string)
| |
| indent | back to summary |
|---|---|
| public static StringBuilder indent(StringBuilder builder, int indentLevel) Make an indent by appending indentLevel tab characters to the builder. | |
| indexOfElementByObjectIdentity | back to summary |
|---|---|
| public static <E> int indexOfElementByObjectIdentity(List<E> list, E o) Like | |
| isNullOrEmpty | back to summary |
|---|---|
| public static <E> boolean isNullOrEmpty(Collection<E> collection) | |
| nextWord | back to summary |
|---|---|
| public static String nextWord(String string) Return the next word of the string, in other words it stops when a space is encountered. | |
| normalizeEolInTextBlock | back to summary |
|---|---|
public static String normalizeEolInTextBlock(String content, String endOfLineCharacter)
| |
| readerToString | back to summary |
|---|---|
| public static String readerToString(Reader reader) throws IOException | |
| removeElementByObjectIdentity | back to summary |
|---|---|
| public static <E> void removeElementByObjectIdentity(List<E> list, E o) Like | |
| removeFileExtension | back to summary |
|---|---|
public static String removeFileExtension(String filename)
| |
| replaceElementByObjectIdentity | back to summary |
|---|---|
| public static <E> void replaceElementByObjectIdentity(List<E> list, E oldObject, E newObject) Like | |
| screamingToCamelCase | back to summary |
|---|---|
| public static String screamingToCamelCase(String original) Transform a string to the camel case conversion. For example "ABC_DEF" becomes "abcDef" | |
| set | back to summary |
|---|---|
public static <T> Set
| |
| stringTransformer | back to summary |
|---|---|
| private static String stringTransformer(String s, String operationDescription, Function<String, String> transformation) | |
| toCamelCase | back to summary |
|---|---|
| public static String toCamelCase(String original)
Deprecated use screamingToCamelCase | |
| trimTrailingSpaces | back to summary |
|---|---|
| public static String trimTrailingSpaces(String line) Like | |
| valueIsNullOrEmpty | back to summary |
|---|---|
public static boolean valueIsNullOrEmpty(Object value)
| |
| valueIsNullOrEmptyStringOrOptional | back to summary |
|---|---|
| public static boolean valueIsNullOrEmptyStringOrOptional(Object value) | |