public class LoadUnits
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
CONVERT2_BIT
Constant for the conversion
|
static int |
CONVERT2_BYTES
Constant for the conversion
|
static int |
CONVERT2_GIGA_BYTE
Constant for the conversion
|
static int |
CONVERT2_KILO_BYTE
Constant for the conversion
|
static int |
CONVERT2_MEGA_BYTE
Constant for the conversion
|
static int |
CONVERT2_TERRA_BYTE
Constant for the conversion
|
Constructor and Description |
---|
LoadUnits() |
Modifier and Type | Method and Description |
---|---|
static double |
bytes2(java.lang.Long bytes,
int convert2Constant)
Converts Bytes to a specified degree like MB or GB.
|
public static final int CONVERT2_BIT
public static final int CONVERT2_BYTES
public static final int CONVERT2_KILO_BYTE
public static final int CONVERT2_MEGA_BYTE
public static final int CONVERT2_GIGA_BYTE
public static final int CONVERT2_TERRA_BYTE