public class FormatUtil extends Object
| Constructor and Description |
|---|
FormatUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
asHexString(SortedSet<Long> set)
Utility class to convert a sorted set of long values to a compact string
suitable for printing.
|
static DecimalFormat |
decimalScale0()
Returns a thread-local DecimalFormat with US formatting and scale zero:
###,###,###,###,###,###,###
|
static DecimalFormat |
decimalScale2()
Returns a thread-local DecimalFormat with US formatting and scale two:
###,###,###,###,###,###,###.##
|
public static DecimalFormat decimalScale0()
A ThreadLocal value is returned because Format objects are
generally not synchronized. The returned value should only be used in
the current thread.
public static DecimalFormat decimalScale2()
A ThreadLocal value is returned because Format objects are
generally not synchronized. The returned value should only be used in
the current thread.
public static String asHexString(SortedSet<Long> set)
Copyright © 2024. All rights reserved.