Package ai.vespa.utils
Class BytesQuantity
java.lang.Object
ai.vespa.utils.BytesQuantity
Reprents a quantity of bytes with a human-readable string representation.
Currently only supports binary units (e.g. 1 kB = 1024 bytes).
- Author:
- bjorncs
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic BytesQuantityfromString(String value) inthashCode()static BytesQuantityof(long value, BytesQuantity.Unit unit) static BytesQuantityofBytes(long bytes) static BytesQuantityofGB(long gb) static BytesQuantityofKB(long kb) static BytesQuantityofMB(long mb) static BytesQuantityofTB(long tb) longtoBytes()toString()