|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutils.Utils
public class Utils
Various utilities
| Field Summary | |
|---|---|
static java.lang.String |
singleWordRegex
Regular expression of single word |
static java.lang.String |
whitespaceRegex
Regular expression of a whitespace |
| Constructor Summary | |
|---|---|
Utils()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
fillWithWhitespace(java.lang.String what,
int totalLength)
Fills string with spaces to reach given length |
static java.lang.String |
join(java.util.Collection<java.lang.String> s,
java.lang.String delimiter)
Joins a collection of strings with a delimiter between each two strings |
static double |
round(double number)
Rounds a number to 3 decimal places |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String singleWordRegex
public static final java.lang.String whitespaceRegex
| Constructor Detail |
|---|
public Utils()
| Method Detail |
|---|
public static double round(double number)
number - to round
public static java.lang.String join(java.util.Collection<java.lang.String> s,
java.lang.String delimiter)
s - collectiondelimiter -
public static java.lang.String fillWithWhitespace(java.lang.String what,
int totalLength)
what - stringtotalLength - length to reach
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||