public class SizeUtil extends Object
| Constructor and Description |
|---|
SizeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static long |
size2Long(String size)
case size to byte length
example:
2k => 2 * 1024
2m => 2 * 1024 * 1024
2g => 2 * 1024 * 1024 * 1024
2t => 2 * 1024 * 1024 * 1024 * 1024
|
public static long size2Long(String size)
size - the string size with unitCopyright © 2023 Seata. All rights reserved.