Package jetbrains.buildServer.util
Class SizePresenter
- java.lang.Object
-
- jetbrains.buildServer.util.SizePresenter
-
public class SizePresenter extends Object
- Author:
- Eugene Petrenko (eugene.petrenko@gmail.com) Date: 18.03.11 10:55
-
-
Field Summary
Fields Modifier and Type Field Description static String
B_POSTFIX
static String
GB_POSTFIX
static long
GiB
static String
KB_POSTFIX
static long
KiB
static String
MB_POSTFIX
static long
MiB
static String
TB_POSTFIX
static long
TiB
-
Constructor Summary
Constructors Constructor Description SizePresenter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
parseSize(String configurationValue)
static String
toString(Long bytesSize)
static String
toStringPrecise(Long bytesSize)
-
-
-
Field Detail
-
KiB
public static final long KiB
- See Also:
- Constant Field Values
-
MiB
public static final long MiB
- See Also:
- Constant Field Values
-
GiB
public static final long GiB
- See Also:
- Constant Field Values
-
TiB
public static final long TiB
- See Also:
- Constant Field Values
-
TB_POSTFIX
public static final String TB_POSTFIX
- See Also:
- Constant Field Values
-
GB_POSTFIX
public static final String GB_POSTFIX
- See Also:
- Constant Field Values
-
MB_POSTFIX
public static final String MB_POSTFIX
- See Also:
- Constant Field Values
-
KB_POSTFIX
public static final String KB_POSTFIX
- See Also:
- Constant Field Values
-
B_POSTFIX
public static final String B_POSTFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
parseSize
public static long parseSize(@NotNull String configurationValue) throws NumberFormatException
- Throws:
NumberFormatException
-
-