public class CountUtil
extends java.lang.Object
CountUtil.getFormattedCount
(1200000);
// returns "1.2m"Constructor and Description |
---|
CountUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getFormattedCount(int count) |
static java.lang.String |
getFormattedCount(java.lang.Long count)
Used to format a given number into a short representation.
|
static java.lang.String |
getFormattedCount(java.lang.String count) |
public static java.lang.String getFormattedCount(int count)
getFormattedCount(Long)
public static java.lang.String getFormattedCount(java.lang.String count)
getFormattedCount(Long)
public static java.lang.String getFormattedCount(java.lang.Long count)
count
- Value to convert.