Package io.camunda.zeebe.util
Class ByteValue
java.lang.Object
io.camunda.zeebe.util.ByteValue
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longofGigabytes(long value) Converts thevaluegigabytes into bytesstatic longofKilobytes(long value) Converts thevaluekilobytes into bytesstatic longofMegabytes(long value) Converts thevaluemegabytes into bytesstatic StringprettyPrint(long bytes)
-
Constructor Details
-
ByteValue
public ByteValue()
-
-
Method Details
-
ofKilobytes
public static long ofKilobytes(long value) Converts thevaluekilobytes into bytes- Parameters:
value- value in kilobytes- Returns:
valueconverted into bytes
-
ofMegabytes
public static long ofMegabytes(long value) Converts thevaluemegabytes into bytes- Parameters:
value- value in megabytes- Returns:
valueconverted into bytes
-
ofGigabytes
public static long ofGigabytes(long value) Converts thevaluegigabytes into bytes- Parameters:
value- value in gigabytes- Returns:
valueconverted into bytes
-
prettyPrint
-