- /**
- * @deprecated use StringUtils when updated
- */
- @Deprecated
- static private String format(long value) {
- //TODO: use StringUtils
-
- String display = "";
- String suffix = "";
-
- if (value > 4000) {
- value = value / 1000;
- suffix = "k";
- }
-
- while (value > 0) {
- if (!display.isEmpty()) {
- display = "." + display;
- }
- display = (value % 1000) + display;
- value = value / 1000;
- }
-
- return display + suffix;
- }
-