public class FormatUtil extends Object
| Constructor and Description |
|---|
FormatUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
ellipse(String value,
int len)
Truncate a string and add an ellipsis ('...') to the end if it exceeds the
specified length.
|
static String |
getFolderTitle(String folderName,
int maxSize)
Gets the folder title.
|
static String |
toScopeValue(GcubeScope gcubeScope)
To scope value.
|
public static String ellipse(String value, int len)
value - the string to truncatelen - the maximum length to allow before truncatingpublic static String getFolderTitle(String folderName, int maxSize)
folderName - the folder namemaxSize - the max sizepublic static String toScopeValue(GcubeScope gcubeScope)
gcubeScope - the gcube scopeCopyright © 2018. All Rights Reserved.