|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.yarn.support.console.CommonUtils
public abstract class CommonUtils
Contains common non-ui related helper methods for rendering text to the console.
| Constructor Summary | |
|---|---|
CommonUtils()
|
|
| Method Summary | |
|---|---|
static void |
closeReader(Reader reader)
|
static String |
collectionToCommaDelimitedString(Collection<String> list)
Convert a List of Strings to a comma delimited String. |
static boolean |
isValidEmail(String emailAddress)
|
static String |
maskPassword(String password)
Simple method to replace characters in a String with asterisks to mask the password. |
static String |
padRight(String string,
int size)
Right-pad the provided String with empty spaces. |
static String |
padRight(String inputString,
int size,
char paddingChar)
Right-pad a String with a configurable padding character. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommonUtils()
| Method Detail |
|---|
public static String padRight(String inputString,
int size,
char paddingChar)
inputString - The String to pad. A null String will be treated like an empty String.size - Pad String by the number of characters.paddingChar - The character to pad the String with.
public static String padRight(String string,
int size)
string - The String to padsize - Pad String by the number of characters.
public static String collectionToCommaDelimitedString(Collection<String> list)
list -
public static void closeReader(Reader reader)
reader - public static boolean isValidEmail(String emailAddress)
emailAddress - The email address to validate
true if the provided email address is valid; false otherwisepublic static String maskPassword(String password)
password - The password to mask
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||