public final class ByteQuantity extends Object
Constructor and Description |
---|
ByteQuantity() |
Modifier and Type | Method and Description |
---|---|
static long |
parse(String str)
Parses the byte quantity representation composed of a number plus a unit.
|
public static long parse(String str) throws IllegalArgumentException
Examples: 1000
, 10 GB
, 1.5TB
, 100 GiB
str
- The String representing a quantity (can have decimals) plus the optional unit.IllegalArgumentException
- if the string cannot be parsed.Copyright © 2021 JBoss by Red Hat. All rights reserved.