-
- /**
- * Format a number for display (use the "k" notation if higher or equal to
- * 4000).
- *
- * @param number
- * the number to parse
- *
- * @return the displayable version of the number
- */
- static private String formatNumber(long number) {
- String displayNumber;
- if (number >= 4000) {
- displayNumber = "" + (number / 1000) + "k";
- } else if (number > 0) {
- displayNumber = "" + number;
- } else {
- displayNumber = "";
- }
-
- return displayNumber;
- }