public class SizeConverter extends Object
| Modifier and Type | Field and Description |
|---|---|
static Long |
BYTES_IN_MEGA |
static Long |
MEGAS_IN_GIGA |
| Constructor and Description |
|---|
SizeConverter() |
| Modifier and Type | Method and Description |
|---|---|
static long |
bytesToGigas(long bytes)
Converts bytes to giga-bytes.
|
static long |
bytesToMegas(long bytes)
Converts bytes to mega-bytes.
|
static long |
gigasToBytes(int gigabytes) |
static long |
gigasToBytes(long gigabytes) |
static long |
megasToBytes(int megabytes) |
static long |
megasToBytes(long megabytes) |
public static Long BYTES_IN_MEGA
public static Long MEGAS_IN_GIGA
public static long megasToBytes(int megabytes)
public static long megasToBytes(long megabytes)
public static long gigasToBytes(int gigabytes)
public static long gigasToBytes(long gigabytes)
public static long bytesToMegas(long bytes)
bytes - number of bytespublic static long bytesToGigas(long bytes)
bytes - number of bytesCopyright © 2012. All Rights Reserved.